diff options
Diffstat (limited to 'abs/extra/chromium/chromium.sh')
-rwxr-xr-x | abs/extra/chromium/chromium.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/abs/extra/chromium/chromium.sh b/abs/extra/chromium/chromium.sh new file mode 100755 index 0000000..ba8a7e6 --- /dev/null +++ b/abs/extra/chromium/chromium.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +# Allow users to override command-line options +# Based on Gentoo's chromium package (and by extension, Debian's) +if [[ -f /etc/chromium/default ]]; then + . /etc/chromium/default +fi + +# Prefer user defined CHROMIUM_USER_FLAGS (from env) over system +# default CHROMIUM_FLAGS (from /etc/chromium/default) +CHROMIUM_FLAGS=${CHROMIUM_USER_FLAGS:-$CHROMIUM_FLAGS} + +export CHROME_WRAPPER=$(readlink -f "$0") +export CHROME_DESKTOP=chromium.desktop + +exec /usr/lib/chromium/chromium $CHROMIUM_FLAGS "$@" |