mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-21 22:47:14 -08:00
www-client/chromium-common: add 2, drop 1
This commit updates the common wrapper script to accept CHROME_WRAPPER from the stub wrapper shipped with each Chromium channel. This was not being set properly in most cases, which was noticable in particular when trying to add new PWAs. Signed-off-by: Matt Jolly <kangie@gentoo.org>
This commit is contained in:
@@ -15,14 +15,12 @@ done
|
||||
# default CHROMIUM_FLAGS (from /etc/chromium/default).
|
||||
CHROMIUM_FLAGS=${CHROMIUM_USER_FLAGS:-"$CHROMIUM_FLAGS"}
|
||||
|
||||
# We rely on the slotted stub to provide PROGDIR.
|
||||
if [[ -z "${PROGDIR}" ]]; then
|
||||
echo "ERROR: PROGDIR is not set. The Chromium launcher stub is misconfigured." >&2
|
||||
# We rely on the slotted stub to provide CHROME_WRAPPER.
|
||||
if [[ -z "${CHROME_WRAPPER}" ]]; then
|
||||
echo "ERROR: CHROME_WRAPPER is not set. The Chromium launcher stub is misconfigured." >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
export CHROME_WRAPPER="${PROGDIR}/${CHROME_EXEC_NAME:-chromium-browser}"
|
||||
|
||||
PROGDIR=${CHROME_WRAPPER%/*}
|
||||
|
||||
case ":$PATH:" in
|
||||
|
||||
Reference in New Issue
Block a user