From 33ded23dc793720232c3fd7dce85b404713ece8b Mon Sep 17 00:00:00 2001 From: thelamer Date: Wed, 17 Jan 2024 09:50:31 -0800 Subject: [PATCH] update chromium wrapper --- root/usr/bin/chromium | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/root/usr/bin/chromium b/root/usr/bin/chromium index 5887b478..8faca0a9 100755 --- a/root/usr/bin/chromium +++ b/root/usr/bin/chromium @@ -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 "$@"