pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

chromium, chromium-next: add user flags to wrapper



Module Name:	pkgsrc-wip
Committed By:	kikadf <kikadf.01%gmail.com@localhost>
Pushed By:	kikadf
Date:		Thu Mar 20 18:48:18 2025 +0100
Changeset:	5184032c0f3c5bbd57eb52f4f1a2ef40f0698d77

Modified Files:
	chromium-next/files/chromium.sh.in
	chromium/files/chromium.sh.in

Log Message:
chromium, chromium-next: add user flags to wrapper

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=5184032c0f3c5bbd57eb52f4f1a2ef40f0698d77

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 chromium-next/files/chromium.sh.in | 6 +++++-
 chromium/files/chromium.sh.in      | 6 +++++-
 2 files changed, 10 insertions(+), 2 deletions(-)

diffs:
diff --git a/chromium-next/files/chromium.sh.in b/chromium-next/files/chromium.sh.in
index 62a6546ed6..4626e08328 100644
--- a/chromium-next/files/chromium.sh.in
+++ b/chromium-next/files/chromium.sh.in
@@ -73,4 +73,8 @@ export LD_LIBRARY_PATH
 [ "${CHROMIUM_ENABLE_WASM:-1}" != "1" ] && \
 	_NOWASM="--disable-features=WebAssembly,AsmJsToWebAssembly,WebAssemblyStreaming --js-flags=--noexpose-wasm"
 
-LANG=${_l} exec "@PREFIX@/lib/chromium/chrome" ${_NOWASM} "${@}"
+# User settings
+[ -f ~/.config/chromium-flags.conf ] || echo 'CHROMIUM_FLAGS=""' > ~/.config/chromium-flags.conf
+. ~/.config/chromium-flags.conf
+
+LANG=${_l} exec "@PREFIX@/lib/chromium/chrome" ${_NOWASM} ${CHROMIUM_FLAGS} "${@}"
diff --git a/chromium/files/chromium.sh.in b/chromium/files/chromium.sh.in
index 62a6546ed6..4626e08328 100644
--- a/chromium/files/chromium.sh.in
+++ b/chromium/files/chromium.sh.in
@@ -73,4 +73,8 @@ export LD_LIBRARY_PATH
 [ "${CHROMIUM_ENABLE_WASM:-1}" != "1" ] && \
 	_NOWASM="--disable-features=WebAssembly,AsmJsToWebAssembly,WebAssemblyStreaming --js-flags=--noexpose-wasm"
 
-LANG=${_l} exec "@PREFIX@/lib/chromium/chrome" ${_NOWASM} "${@}"
+# User settings
+[ -f ~/.config/chromium-flags.conf ] || echo 'CHROMIUM_FLAGS=""' > ~/.config/chromium-flags.conf
+. ~/.config/chromium-flags.conf
+
+LANG=${_l} exec "@PREFIX@/lib/chromium/chrome" ${_NOWASM} ${CHROMIUM_FLAGS} "${@}"


Home | Main Index | Thread Index | Old Index