Skip to content

Commit

Permalink
Merge pull request #7 from linuxserver/wrapper-fix
Browse files Browse the repository at this point in the history
update wrappers to function properly and cleanup for chromium
  • Loading branch information
thelamer committed Jan 18, 2024
2 parents 4862e79 + b844032 commit a906f44
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
7 changes: 6 additions & 1 deletion root/usr/bin/chromium
Original file line number Diff line number Diff line change
Expand Up @@ -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 "$@"
Expand Down
2 changes: 1 addition & 1 deletion root/usr/bin/codium
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion root/usr/bin/github-desktop
Original file line number Diff line number Diff line change
Expand Up @@ -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 "$@"
Expand Down

0 comments on commit a906f44

Please sign in to comment.