2016-02-24 01:27:23 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
2017-10-22 06:22:54 +02:00
|
|
|
# Allow users to override command-line options
|
2016-02-24 01:27:23 +01:00
|
|
|
# Based on Gentoo's chromium package (and by extension, Debian's)
|
2017-10-22 06:22:54 +02:00
|
|
|
for FILE in /etc/chromium/*.conf ; do
|
|
|
|
[[ -f ${FILE} ]] && source "${FILE}"
|
|
|
|
done
|
2016-02-24 01:27:23 +01:00
|
|
|
|
2017-10-22 06:22:54 +02:00
|
|
|
# Prefer user defined CHROMIUM_USER_FLAGS flags (from environment) over
|
|
|
|
# system default CHROMIUM_FLAGS (from /etc/chromium)/)
|
2016-02-24 01:27:23 +01:00
|
|
|
CHROMIUM_FLAGS=${CHROMIUM_USER_FLAGS:-$CHROMIUM_FLAGS}
|
|
|
|
|
|
|
|
export CHROME_WRAPPER=$(readlink -f "$0")
|
|
|
|
export CHROME_DESKTOP=chromium.desktop
|
|
|
|
|
2017-10-22 06:22:54 +02:00
|
|
|
exec /usr/lib@LIBDIRSUFFIX@/chromium/chromium $CHROMIUM_FLAGS "$@"
|