mirror of
https://github.com/linuxserver/docker-github-desktop.git
synced 2026-01-20 12:12:53 +08:00
Merge pull request #7 from linuxserver/wrapper-fix
update wrappers to function properly and cleanup for chromium
This commit is contained in:
commit
a906f44918
@ -2,8 +2,13 @@
|
||||
|
||||
BIN=/usr/bin/chromium-real
|
||||
|
||||
# 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
|
||||
if grep -q 'Seccomp:\t0' /proc/1/status; then
|
||||
${BIN} --password-store=basic "$@"
|
||||
else
|
||||
${BIN} --password-store=basic --no-sandbox --test-type "$@"
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
BIN=/usr/share/codium/bin/codium
|
||||
|
||||
# Run normally on privved containers or modified un non priv
|
||||
if grep -q 'Seccomp: 0' /proc/1/status; then
|
||||
if grep -q 'Seccomp:\t0' /proc/1/status; then
|
||||
${BIN} \
|
||||
"$@"
|
||||
else
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
BIN=/usr/lib/github-desktop/github-desktop
|
||||
|
||||
# Run normally on privved containers or modified un non priv
|
||||
if grep -q 'Seccomp: 0' /proc/1/status; then
|
||||
if grep -q 'Seccomp:\t0' /proc/1/status; then
|
||||
dbus-launch ${BIN} --password-store=basic "$@"
|
||||
else
|
||||
dbus-launch ${BIN} --password-store=basic --no-sandbox --test-type "$@"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user