mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-18 22:54:00 +00:00
17 lines
505 B
Bash
17 lines
505 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
# Allow users to override command-line options
|
||
|
# Based on Gentoo's chromium package (and by extension, Debian's)
|
||
|
if [[ -f /etc/chromium/default ]]; then
|
||
|
. /etc/chromium/default
|
||
|
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/chromium/chromium $CHROMIUM_FLAGS "$@"
|