diff --git a/root/usr/bin/chromium-browser b/root/usr/bin/chromium-browser new file mode 100755 index 00000000..fcc41e93 --- /dev/null +++ b/root/usr/bin/chromium-browser @@ -0,0 +1,18 @@ +#! /bin/bash + +BIN=/usr/lib/chromium/chromium-launcher.sh + +# Bugfix for Chromium in Alpine +export GTK_THEME=Adwaita:light + +# Cleanup +if ! pgrep chromium > /dev/null;then + rm -f $HOME/.config/chromium/Singleton* +fi + +# Run normally on privved containers or modified un non priv +if grep -q 'Seccomp:.0' /proc/1/status; then + ${BIN} --no-first-run --password-store=basic "$@" +else + ${BIN} --no-first-run --password-store=basic --no-sandbox --test-type "$@" +fi