docker-rdesktop/root/usr/bin/chromium-browser
2024-01-18 10:36:23 -08:00

16 lines
348 B
Bash
Executable File

#!/bin/bash
BIN=/usr/bin/chromium-real
# 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:\t0' /proc/1/status; then
${BIN} --password-store=basic "$@"
else
${BIN} --password-store=basic --no-sandbox --test-type "$@"
fi