File chrome-wrapper.patch of Package chromium

--- chrome-wrapper	2025-02-19 19:18:10.596080647 +0800
+++ chrome-wrapper.new	2025-02-19 19:21:24.607160817 +0800
@@ -18,6 +18,16 @@
 # We don't want bug-buddy intercepting our crashes. http://crbug.com/24120
 export GNOME_DISABLE_CRASH_DIALOG=SET_BY_GOOGLE_CHROME
 
+# Allow users to override command-line options and prefer user defined
+# CHROMIUM_USER_FLAGS from env over system wide CHROMIUM_FLAGS
+[[ -f /etc/chromium/chromium.conf ]] && . /etc/chromium/chromium.conf
+CHROMIUM_FLAGS=${CHROMIUM_USER_FLAGS:-$CHROMIUM_FLAGS}
+
+CHROMIUM_DISTRO_FLAGS=" --enable-plugins \
+                        --enable-extensions \
+                        --enable-user-scripts \
+                        --auto-ssl-client-auth"
+
 # Allow root usage
 no_sandbox=
 if [ "`id -u`" == "0" ]; then
@@ -31,4 +41,4 @@
 exec 2> >(exec cat >&2)
 
 # Note: exec -a below is a bashism.
-exec -a "$0" "$HERE/chrome" $no_sandbox "$@"
+exec -a "$0" "$HERE/chrome" $CHROMIUM_FLAGS $CHROMIUM_DISTRO_FLAGS $no_sandbox "$@"
openSUSE Build Service is sponsored by