slackbuilds_ponce/network/chromium/chromium.sh
Willy Sudiarto Raharjo fbd5bce35d network/chromium: Support CLANG.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
2016-01-27 07:28:25 +07:00

16 lines
541 B
Bash

#!/bin/bash
# Allow users to override command-line options
# Based on Gentoo's chromium package (and by extension, Debian's)
for FILE in /etc/chromium/*.conf ; do
[[ -f ${FILE} ]] && source "${FILE}"
done
# Prefer user defined CHROMIUM_USER_FLAGS flags (from environment) over
# system default CHROMIUM_FLAGS (from /etc/chromium)/)
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 "$@"