aboutsummaryrefslogtreecommitdiff
path: root/network/chromium/chromium.sh
blob: c6e00532ab32175d43fd47c51e9af18b9adc78a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/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/lib64/chromium/chromium $CHROMIUM_FLAGS "$@"