update chromium wrapper (#217)

This commit is contained in:
Ryan Kuba 2024-01-18 13:43:33 -08:00 committed by GitHub
parent c6cf7f01ca
commit 4429d3d014
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2,8 +2,13 @@
BIN=/usr/bin/chromium-browser
# 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 "$@"