diff options
author | Stephan Hartmann <sultan@gentoo.org> | 2020-09-06 21:28:52 +0200 |
---|---|---|
committer | Stephan Hartmann <sultan@gentoo.org> | 2020-09-07 07:26:16 +0200 |
commit | c8b238d8609856b248d1e3e203f3b6d55ce72fd8 (patch) | |
tree | dfcef5aa0ebffa33a50ed6d8124f1e6bb0f8557d /www-client/chromium/files | |
parent | profiles: mask >=www-client/chromium-87[wayland] (diff) | |
download | gentoo-c8b238d8609856b248d1e3e203f3b6d55ce72fd8.tar.gz gentoo-c8b238d8609856b248d1e3e203f3b6d55ce72fd8.tar.bz2 gentoo-c8b238d8609856b248d1e3e203f3b6d55ce72fd8.zip |
www-client/chromium: dev channel bump to 87.0.4252.0
Package-Manager: Portage-3.0.4, Repoman-3.0.1
Signed-off-by: Stephan Hartmann <sultan@gentoo.org>
Diffstat (limited to 'www-client/chromium/files')
-rw-r--r-- | www-client/chromium/files/chromium-launcher-r6.sh | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/www-client/chromium/files/chromium-launcher-r6.sh b/www-client/chromium/files/chromium-launcher-r6.sh new file mode 100644 index 000000000000..cc548e3e3a9c --- /dev/null +++ b/www-client/chromium/files/chromium-launcher-r6.sh @@ -0,0 +1,48 @@ +#!/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") + +PROGDIR=${CHROME_WRAPPER%/*} + +case ":$PATH:" in + *:$PROGDIR:*) + # $PATH already contains $PROGDIR + ;; + *) + # Append $PROGDIR to $PATH + export PATH="$PATH:$PROGDIR" + ;; +esac + +if [[ ${EUID} == 0 && -O ${XDG_CONFIG_HOME:-${HOME}} ]]; then + # Running as root with HOME owned by root. + # Pass --user-data-dir to work around upstream failsafe. + CHROMIUM_FLAGS="--user-data-dir=${XDG_CONFIG_HOME:-${HOME}/.config}/chromium + ${CHROMIUM_FLAGS}" +fi + +# Select session type and platform +if @@FORCE_OZONE_PLATFORM@@; then + CHROMIUM_FLAGS="--enable-features=UseOzonePlatform ${CHROMIUM_FLAGS}" +elif @@OZONE_AUTO_SESSION@@; then + if [[ ${XDG_SESSION_TYPE} == wayland || -n ${WAYLAND_DISPLAY} && ${XDG_SESSION_TYPE} != x11 ]]; then + CHROMIUM_FLAGS="--enable-features=UseOzonePlatform ${CHROMIUM_FLAGS}" + fi +fi + +# Set the .desktop file name +export CHROME_DESKTOP="chromium-browser-chromium.desktop" + +exec -a "chromium-browser" "$PROGDIR/chrome" --extra-plugin-dir=/usr/lib/nsbrowser/plugins ${CHROMIUM_FLAGS} "$@" |