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

View File

@@ -1,22 +1,2 @@
#! /bin/bash
# Only start in no-sandbox mode on unpriv systems
if grep -q 'Seccomp: 0' /proc/1/status; then
chromium-browser \
--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
chromium-browser \
--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
chromium-browser ${CHROME_CLI}