restructure the wrapper to be simplified and pass CLI args when launched
This commit is contained in:
@@ -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}
|
||||
|
||||
@@ -2,6 +2,6 @@
|
||||
<openbox_menu xmlns="http://openbox.org/3.4/menu">
|
||||
<menu id="root-menu" label="MENU">
|
||||
<item label="xterm" icon="/usr/share/pixmaps/xterm-color_48x48.xpm"><action name="Execute"><command>/usr/bin/xterm</command></action></item>
|
||||
<item label="Chromium" icon="/usr/share/icons/hicolor/48x48/apps/chromium.png"><action name="Execute"><command>/usr/bin/chromium-browser --password-store=basic --no-sandbox --ignore-gpu-blocklist --user-data-dir --no-first-run --simulate-outdated-no-au='Tue, 31 Dec 2099 23:59:59 GMT' --start-maximized --test-type</command></action></item>
|
||||
<item label="Chromium" icon="/usr/share/icons/hicolor/48x48/apps/chromium.png"><action name="Execute"><command>/usr/bin/chromium-browser</command></action></item>
|
||||
</menu>
|
||||
</openbox_menu>
|
||||
|
||||
26
root/usr/bin/chromium-browser
Executable file
26
root/usr/bin/chromium-browser
Executable 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
|
||||
Reference in New Issue
Block a user