2012-06-11 04:16:02 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# Allow users to override command-line options
|
2015-02-20 13:14:29 +00:00
|
|
|
# Based on Gentoo's chromium package
|
2012-06-11 04:16:02 +00:00
|
|
|
if [[ -f /etc/chromium/default ]]; then
|
|
|
|
. /etc/chromium/default
|
|
|
|
fi
|
2015-02-20 13:14:29 +00:00
|
|
|
# Source additional configuration files
|
|
|
|
for file in /etc/chromium/*; do
|
|
|
|
# Don't source /etc/chromium/default again
|
|
|
|
[[ $file == /etc/chromium/default ]] && continue
|
|
|
|
|
|
|
|
if [[ -f $file ]]; then
|
|
|
|
. $file
|
|
|
|
fi
|
|
|
|
done
|
2012-06-11 04:16:02 +00:00
|
|
|
|
|
|
|
# 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 "$@"
|