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:
Matt Jolly
2026-03-04 22:43:57 +10:00
parent 16ecbb19ee
commit 1afcda04a7
2 changed files with 3 additions and 5 deletions
@@ -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