mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-18 22:06:04 +01:00
fbd5bce35d
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
16 lines
541 B
Bash
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 "$@"
|