solar/docker-chrome/launch_chrome.sh

9 lines
491 B
Bash

#!/bin/bash
# Launch Chrome (desktop shortcut or watchdog). Use same args as session; read from file when env not set.
if [ -z "${APP_ARGS:-}" ] && [ -f /tmp/chrome_app_args ]; then
export APP_ARGS="$(cat /tmp/chrome_app_args)"
fi
# Remove Singleton lock so a new window can start after the previous one was closed
rm -f /data/chrome-profile/Singleton* 2>/dev/null || true
exec /opt/google/chrome/google-chrome --password-store=basic --no-sandbox --ignore-gpu-blocklist ${APP_ARGS:-} "$@"