Switch to Chromium

This commit is contained in:
Michael Bradley 2025-05-18 00:36:49 -04:00
parent e9df645b49
commit d9fc5df080
Signed by: MichaelBradley
SSH key fingerprint: SHA256:BKO2eI2LPsCbQS3n3i5SdwZTAIV3F1lHezR07qP+Ob0
8 changed files with 24 additions and 154 deletions

View file

@ -3,25 +3,8 @@
set -e # Exit immediately if a command exits with a non-zero status.
set -u # Treat unset variables as an error.
# Set location of profile.
echo "--profile"
echo "/config/profile"
# Always make browser take up full screen
echo "--start-maximized"
# Make sure we don't get ask to be the default browser.
echo "--setDefaultBrowser"
# Check if kiosk mode is enabled.
if is-bool-val-true "${FF_KIOSK:-0}"; then
echo "--kiosk"
fi
# URL to open.
# NOTE: This should be the last argument.
if [ -n "${FF_OPEN_URL:-}" ]; then
echo "$FF_OPEN_URL"
fi
# Custom arguments.
if [ -n "${FF_CUSTOM_ARGS:-}" ]; then
eval 'for word in '$FF_CUSTOM_ARGS'; do echo "$word"; done'
fi
# Disable sandboxing, which isn't supported in containers
echo "--no-sandbox"