]> git.pld-linux.org Git - packages/chromium-browser.git/commitdiff
- add possibility to pass custom flags permanently to chromium startup
authorElan Ruusamäe <glen@pld-linux.org>
Mon, 7 Mar 2011 10:38:13 +0000 (10:38 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    chromium-browser.sh -> 1.4

chromium-browser.sh

index 645a1f50c635fec1e910e89f6cccb3038787d944..b46618875f2f310f3a885bffb16c0e2d0cef0f48 100644 (file)
@@ -26,4 +26,14 @@ fi
 # Set CHROME_VERSION_EXTRA visible in the About dialog and in about:version
 export CHROME_VERSION_EXTRA="PLD Linux"
 
-exec @libdir@/chromium-browser "$@"
+# Google Chrome has a number of command line switches which change the behavior of Chrome
+# This param allows you to set extra args for browser startup.
+# See source for possible choices:
+# http://git.chromium.org/gitweb/?p=chromium.git;f=chrome/common/chrome_switches.cc;hb=HEAD
+CHROME_FLAGS_FILE="${XDG_CONFIG_HOME:-$HOME/.config}/chromium/Chrome Flags"
+if [ -f "$CHROME_FLAGS_FILE" ]; then
+       # All lines starting with # are ignored
+       CHROME_FLAGS=$(grep -v '^#' "$CHROME_FLAGS_FILE")
+fi
+
+exec @libdir@/chromium-browser $CHROME_FLAGS "$@"
This page took 0.041254 seconds and 4 git commands to generate.