Chrome79/chrome.sh

20 lines
546 B
Bash
Raw Normal View History

2024-10-16 23:08:29 +03:00
#!/usr/bin/bash
# Merge the policies with the host ones.
policy_root=/etc/opt/chrome/policies
for policy_type in managed recommended enrollment; do
policy_dir="$policy_root/$policy_type"
mkdir -p "$policy_dir"
if [[ -d "/run/host/$policy_root/$policy_type" ]]; then
find "/run/host/$policy_root/$policy_type" -type f -name '*' \
-exec ln -sf '{}' "$policy_root/$policy_type" \;
fi
done
mkdir "${XDG_CONFIG_HOME}/google-chrome" 2> /dev/null
touch "${XDG_CONFIG_HOME}/google-chrome/WidevineCdm"
exec cobalt "--no-sandbox $@"