Skip to content

Commit

Permalink
update wrapper script
Browse files Browse the repository at this point in the history
  • Loading branch information
thelamer committed Jan 17, 2024
1 parent 1b80481 commit fbe845a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
1 change: 1 addition & 0 deletions readme-vars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,5 @@ app_setup_block: |
# changelog
changelogs:
- { date: "17.01.24:", desc: "Update Chromium wrapper." }
- { date: "21.04.23:", desc: "Initial release." }
7 changes: 6 additions & 1 deletion root/usr/local/bin/wrapped-chromium
Original file line number Diff line number Diff line change
Expand Up @@ -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 "$@"
Expand Down

0 comments on commit fbe845a

Please sign in to comment.