From 4429d3d01463a58fe05b45e005fd159f55bf8cdd Mon Sep 17 00:00:00 2001 From: Ryan Kuba Date: Thu, 18 Jan 2024 13:43:33 -0800 Subject: [PATCH] update chromium wrapper (#217) --- root/usr/local/bin/wrapped-chromium | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/root/usr/local/bin/wrapped-chromium b/root/usr/local/bin/wrapped-chromium index 7c4cb51a..b5f22115 100755 --- a/root/usr/local/bin/wrapped-chromium +++ b/root/usr/local/bin/wrapped-chromium @@ -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 "$@"