summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Hartmann <sultan@gentoo.org>2020-11-22 09:17:59 +0100
committerStephan Hartmann <sultan@gentoo.org>2020-11-22 09:17:59 +0100
commit102e93f384ad8fcf9fbcc729641de6a4a09cb73a (patch)
treebb5fdf4a901d030b8d45510870592c176ff8bb7d /www-client/chromium/files/chromium-launcher-r5.sh
parentpackage.mask: last-rite app-accessibility/simon (diff)
downloadgentoo-102e93f384ad8fcf9fbcc729641de6a4a09cb73a.tar.gz
gentoo-102e93f384ad8fcf9fbcc729641de6a4a09cb73a.tar.bz2
gentoo-102e93f384ad8fcf9fbcc729641de6a4a09cb73a.zip
www-client/chromium: security cleanup
Bug: https://bugs.gentoo.org/755227 Package-Manager: Portage-3.0.9, Repoman-3.0.2 Signed-off-by: Stephan Hartmann <sultan@gentoo.org>
Diffstat (limited to 'www-client/chromium/files/chromium-launcher-r5.sh')
-rw-r--r--www-client/chromium/files/chromium-launcher-r5.sh56
1 files changed, 0 insertions, 56 deletions
diff --git a/www-client/chromium/files/chromium-launcher-r5.sh b/www-client/chromium/files/chromium-launcher-r5.sh
deleted file mode 100644
index d9aa3af9a057..000000000000
--- a/www-client/chromium/files/chromium-launcher-r5.sh
+++ /dev/null
@@ -1,56 +0,0 @@
-#!/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
-if @@OZONE_AUTO_SESSION@@; then
- platform=
- if [[ ${XDG_SESSION_TYPE} == x11 ]]; then
- platform=x11
- elif [[ ${XDG_SESSION_TYPE} == wayland ]]; then
- platform=wayland
- else
- if [[ -n ${WAYLAND_DISPLAY} ]]; then
- platform=wayland
- else
- platform=x11
- fi
- fi
- CHROMIUM_FLAGS="--ozone-platform=${platform} ${CHROMIUM_FLAGS}"
-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} "$@"