mirror of
https://github.com/linuxserver/docker-webtop.git
synced 2025-09-21 08:48:07 +02:00
#355 fix chromium not launching due to pathing Alpine
This commit is contained in:
parent
4d7c5f8db7
commit
34aee0c5ea
18
root/usr/bin/chromium-browser
Executable file
18
root/usr/bin/chromium-browser
Executable 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
|
Loading…
x
Reference in New Issue
Block a user