20 lines
652 B
Bash
20 lines
652 B
Bash
#!/bin/bash
|
|
|
|
# Allow the user to override command-line flags, bug #357629.
|
|
# This is based on Debian's chromium-browser package, and is intended
|
|
# to be consistent with Debian.
|
|
for f in /etc/chromium/*; do
|
|
[[ -f ${f} ]] && source "${f}"
|
|
done
|
|
|
|
# Prefer user defined CHROMIUM_USER_FLAGS (from env) over system
|
|
# default CHROMIUM_FLAGS (from /etc/chromium/default).
|
|
CHROMIUM_FLAGS=${CHROMIUM_USER_FLAGS:-"$CHROMIUM_FLAGS"}
|
|
|
|
# Let the wrapped binary know that it has been run through the wrapper.
|
|
export CHROME_WRAPPER="$(readlink -f "$0")"
|
|
|
|
HERE="$(dirname "$CHROME_WRAPPER")"
|
|
|
|
exec -a "teams-for-linux" "$HERE/teams-for-linux" ${CHROMIUM_FLAGS} "$@"
|