Skip to content

Commit 6594a93

Browse files
committed
#355 fix chromium not launching due to pathing Alpine-xfce
1 parent c335df9 commit 6594a93

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

root/usr/bin/chromium-browser

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#! /bin/bash
2+
3+
BIN=/usr/lib/chromium/chromium-launcher.sh
4+
5+
# Bugfix for Chromium in Alpine
6+
export GTK_THEME=Adwaita:light
7+
8+
# Cleanup
9+
if ! pgrep chromium > /dev/null;then
10+
rm -f $HOME/.config/chromium/Singleton*
11+
fi
12+
13+
# Run normally on privved containers or modified un non priv
14+
if grep -q 'Seccomp:.0' /proc/1/status; then
15+
${BIN} --no-first-run --password-store=basic "$@"
16+
else
17+
${BIN} --no-first-run --password-store=basic --no-sandbox --test-type "$@"
18+
fi

0 commit comments

Comments
 (0)