summaryrefslogtreecommitdiff
path: root/network/chromium/chromium.sh
blob: 6057c639d9e4921f2bd6dfe129fafd757349761b (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/lib@LIBDIRSUFFIX@/chromium/chromium $CHROMIUM_FLAGS "$@"