#355 fix chromium not launching due to pathing Alpine

This commit is contained in:
thelamer 2025-08-06 13:49:41 -04:00
parent 4d7c5f8db7
commit 34aee0c5ea
No known key found for this signature in database

18
root/usr/bin/chromium-browser Executable file
View File

@ -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