From 2a0193a0c836853682cf0c40104b9eab4efa8f0a Mon Sep 17 00:00:00 2001 From: Eric Hameleers Date: Mon, 18 Nov 2013 13:49:57 +0000 Subject: Initial revision --- chromium/build/chromium.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 chromium/build/chromium.sh (limited to 'chromium/build/chromium.sh') 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 "$@" + -- cgit v1.2.3-65-gdbad