diff options
author | Eric Hameleers <alien@slackware.com> | 2013-11-18 13:49:57 +0000 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2013-11-18 13:49:57 +0000 |
commit | 2a0193a0c836853682cf0c40104b9eab4efa8f0a (patch) | |
tree | 7111f480326772e93056313cab8da5abb558cd83 /chromium/build/chromium.sh | |
parent | f6f461043038c3fbbed602fe06894bcde4a748c9 (diff) | |
download | asb-2a0193a0c836853682cf0c40104b9eab4efa8f0a.tar.gz asb-2a0193a0c836853682cf0c40104b9eab4efa8f0a.tar.xz |
Initial revision
Diffstat (limited to '')
-rw-r--r-- | chromium/build/chromium.sh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/chromium/build/chromium.sh b/chromium/build/chromium.sh new file mode 100644 index 00000000..e114452e --- /dev/null +++ b/chromium/build/chromium.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 ]]; then + . /etc/default/chromium +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@LIBDIRSUFFIX@/chromium/chromium $CHROMIUM_FLAGS "$@" + |