summaryrefslogtreecommitdiffstats
path: root/chromium/build/chromium.sh
diff options
context:
space:
mode:
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
commit2a0193a0c836853682cf0c40104b9eab4efa8f0a (patch)
tree7111f480326772e93056313cab8da5abb558cd83 /chromium/build/chromium.sh
parentf6f461043038c3fbbed602fe06894bcde4a748c9 (diff)
downloadasb-2a0193a0c836853682cf0c40104b9eab4efa8f0a.tar.gz
asb-2a0193a0c836853682cf0c40104b9eab4efa8f0a.tar.xz
Initial revision
Diffstat (limited to '')
-rw-r--r--chromium/build/chromium.sh17
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 "$@"
+