Switch to Chromium
This commit is contained in:
parent
e9df645b49
commit
d9fc5df080
8 changed files with 24 additions and 154 deletions
|
@ -1,7 +1,7 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# Firefox doesn't gracefully shutdown when receiving SIGTERM. For example, last
|
||||
# opened tabs may not be saved. Instead, terminate Firefox by sending the
|
||||
# Chromium doesn't gracefully shutdown when receiving SIGTERM. For example, last
|
||||
# opened tabs may not be saved. Instead, terminate Chromium by sending the
|
||||
# CTRL+q key presses.
|
||||
#
|
||||
|
||||
|
@ -14,7 +14,7 @@ xdotool key "ctrl+q"
|
|||
|
||||
for i in $(seq 1 10)
|
||||
do
|
||||
if ! ps | grep "/usr/lib/firefox/firefox" | grep -q -v grep
|
||||
if ! ps | grep "/usr/lib/chromium/chromium" | grep -q -v grep
|
||||
then
|
||||
break
|
||||
fi
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue