From fbe845a0fc3a96994ccda3ee6c67e77e353b2709 Mon Sep 17 00:00:00 2001 From: thelamer Date: Wed, 17 Jan 2024 11:51:59 -0800 Subject: [PATCH] update wrapper script --- README.md | 1 + readme-vars.yml | 1 + root/usr/local/bin/wrapped-chromium | 7 ++++++- 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index a58a17a..725edf5 100644 --- a/README.md +++ b/README.md @@ -314,4 +314,5 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64 ## Versions +* **17.01.24:** - Update Chromium wrapper. * **21.04.23:** - Initial release. diff --git a/readme-vars.yml b/readme-vars.yml index 66e8f1c..611c972 100644 --- a/readme-vars.yml +++ b/readme-vars.yml @@ -75,4 +75,5 @@ app_setup_block: | # changelog changelogs: + - { date: "17.01.24:", desc: "Update Chromium wrapper." } - { date: "21.04.23:", desc: "Initial release." } diff --git a/root/usr/local/bin/wrapped-chromium b/root/usr/local/bin/wrapped-chromium index 182b866..dd85cdb 100755 --- a/root/usr/local/bin/wrapped-chromium +++ b/root/usr/local/bin/wrapped-chromium @@ -2,8 +2,13 @@ BIN=/usr/bin/chromium +# 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 "$@"