packages: chromium-browser/chromium-browser.sh - add possibility to pass cu...
glen
glen at pld-linux.org
Mon Mar 7 11:38:18 CET 2011
Author: glen Date: Mon Mar 7 10:38:18 2011 GMT
Module: packages Tag: HEAD
---- Log message:
- add possibility to pass custom flags permanently to chromium startup
---- Files affected:
packages/chromium-browser:
chromium-browser.sh (1.3 -> 1.4)
---- Diffs:
================================================================
Index: packages/chromium-browser/chromium-browser.sh
diff -u packages/chromium-browser/chromium-browser.sh:1.3 packages/chromium-browser/chromium-browser.sh:1.4
--- packages/chromium-browser/chromium-browser.sh:1.3 Tue Feb 2 12:04:35 2010
+++ packages/chromium-browser/chromium-browser.sh Mon Mar 7 11:38:13 2011
@@ -26,4 +26,14 @@
# 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 "$@"
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/chromium-browser/chromium-browser.sh?r1=1.3&r2=1.4&f=u
More information about the pld-cvs-commit
mailing list