docker-chrome/root/usr/bin/wrapped-chrome
2025-06-18 11:16:10 -04:00

30 lines
654 B
Bash
Executable File

#!/bin/bash
BIN=/usr/bin/google-chrome
# Cleanup
if pgrep chrome > /dev/null;then
rm -f $HOME/.config/google-chrome/Singleton*
fi
# Run normally on privved containers or modified un non priv
if grep -q 'Seccomp:.0' /proc/1/status; then
${BIN} \
--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} \
--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