2025-05-10 21:49:39 +08:00

30 lines
1001 B
Diff

From 1d75677445177bc9c16bb7d0fae607d0c5e82c0a Mon Sep 17 00:00:00 2001
From: Raphael Kubo da Costa <raphael.kubo.da.costa@intel.com>
Date: Wed, 8 Nov 2017 16:43:47 +0100
Subject: [PATCH] wrapper: extra flags
The patch below is used to allow running Chromium as root as well as passing
extra flags to it by default.
Upstream-Status: Inappropriate [embedder specific]
Signed-off-by: Raphael Kubo da Costa <raphael.kubo.da.costa@intel.com>
---
chrome/installer/linux/common/wrapper | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/chrome/installer/linux/common/wrapper b/chrome/installer/linux/common/wrapper
index 20c6e8fe29..d92a60b5f3 100755
--- a/chrome/installer/linux/common/wrapper
+++ b/chrome/installer/linux/common/wrapper
@@ -45,5 +45,7 @@ exec < /dev/null
exec > >(exec cat)
exec 2> >(exec cat >&2)
+CHROME_EXTRA_ARGS=""
+
# Note: exec -a below is a bashism.
-exec -a "$0" "$HERE/@@PROGNAME@@" "$@"
+exec -a "$0" "$HERE/@@PROGNAME@@" ${CHROME_EXTRA_ARGS} "$@"