[X2Go-Commits] [live-build-x2go] 05/06: added runtime patching routine for firefox config

git-admin at x2go.org git-admin at x2go.org
Fri Dec 1 01:30:39 CET 2017


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch feature/mate-minidesktop
in repository live-build-x2go.

commit e7bb995ce69956798cf3bbc26486ec38a0bf1818
Author: Stefan Baur <kontakt at baur-itcs.de>
Date:   Thu Nov 30 10:31:59 2017 +0100

    added runtime patching routine for firefox config
---
 .../lib/live/config/2900-firefox-config            | 27 ++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/config/includes.chroot/lib/live/config/2900-firefox-config b/config/includes.chroot/lib/live/config/2900-firefox-config
new file mode 100755
index 0000000..91cacbb
--- /dev/null
+++ b/config/includes.chroot/lib/live/config/2900-firefox-config
@@ -0,0 +1,27 @@
+#!/bin/sh
+
+FirefoxConfig ()
+{
+	# Output startup message
+	#
+	echo -n " firefoxconfig"
+
+	HOMEPAGEURL=$(sed -e 's/ \([^ ]*\)=/\n\1=/g' -e 's/\([^=]["'"'"']\) /\1\n/g' /proc/cmdline | \
+		      awk -F'=' ' /^homepageurl=/ { print $2 } ')
+	if [ -z "$HOMEPAGEURL" ] ; then 
+		HOMEPAGEURL='http://www.x2go.org/'
+		sed -i	-e '/"browser.rights.3.shown"/d' \
+			-e '/"browser.startup.homepage_override.mstone"/d' \
+			-e '/"browser.startup.homepage"/d' \
+			/etc/firefox-esr/firefox-esr.js
+		cat >>/etc/firefox-esr/firefox-esr.js <<FIREFOXCONFIG
+
+//set some sane browser defaults
+lockPref("browser.rights.3.shown", true);
+lockPref("browser.startup.homepage_override.mstone","ignore");
+lockPref("browser.startup.homepage", "$HOMEPAGEURL");
+FIREFOXCONFIG
+	fi
+}
+
+FirefoxConfig

--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/live-build-x2go.git


More information about the x2go-commits mailing list