diff options
Diffstat (limited to 'chromium-dev/build/chromium-dev.sh')
-rw-r--r-- | chromium-dev/build/chromium-dev.sh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/chromium-dev/build/chromium-dev.sh b/chromium-dev/build/chromium-dev.sh new file mode 100644 index 00000000..026babbc --- /dev/null +++ b/chromium-dev/build/chromium-dev.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +# Allow users to override command-line options +# Based on Gentoo's chromium package (and by extension, Debian's) +if [[ -f /etc/default/chromium-dev ]]; then + . /etc/default/chromium-dev +fi + +# Prefer user defined CHROMIUM_DEV_USER_FLAGS (from env) over system +# default CHROMIUM_FLAGS (from /etc/default/chromium-dev) +CHROMIUM_DEV_FLAGS=${CHROMIUM_DEV_USER_FLAGS:-$CHROMIUM_DEV_FLAGS} + +export CHROME_WRAPPER=$(readlink -f "$0") +export CHROME_DESKTOP=chromium-dev.desktop + +exec /usr/lib@LIBDIRSUFFIX@/chromium-dev/chromium-dev $CHROMIUM_DEV_FLAGS "$@" + |