From 34aee0c5ea6f3e41f84c91c8b209afeaf09af6a0 Mon Sep 17 00:00:00 2001 From: thelamer Date: Wed, 6 Aug 2025 13:49:41 -0400 Subject: [PATCH] #355 fix chromium not launching due to pathing Alpine --- root/usr/bin/chromium-browser | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 root/usr/bin/chromium-browser 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