restructure the wrapper to be simplified and pass CLI args when launched

This commit is contained in:
thelamer
2023-04-01 10:22:23 -07:00
parent 305a9b0b2c
commit 51acfbb1c9
10 changed files with 77 additions and 37 deletions

26
root/usr/bin/chromium-browser Executable file
View File

@@ -0,0 +1,26 @@
#! /bin/bash
BIN=/usr/lib/chromium/chromium-launcher.sh
# Run normally on privved containers or modified un non priv
if grep -q 'Seccomp: 0' /proc/1/status; then
${BIN} \
--ignore-gpu-blocklist \
--no-first-run \
--password-store=basic \
--simulate-outdated-no-au='Tue, 31 Dec 2099 23:59:59 GMT' \
--start-maximized \
--user-data-dir \
"$@" > /dev/null 2>&1
else
${BIN} \
--ignore-gpu-blocklist \
--no-first-run \
--no-sandbox \
--password-store=basic \
--simulate-outdated-no-au='Tue, 31 Dec 2099 23:59:59 GMT' \
--start-maximized \
--test-type \
--user-data-dir \
"$@" > /dev/null 2>&1
fi