From 681365531c3ceb49f8a972cc023acfc4fa0109f6 Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Tue, 22 Oct 2013 09:13:24 -0700 Subject: [PATCH] fix and simplify setting of firefox homepage in qa-test-day.ks --- custom/qa-test-day.ks | 21 +++------------------ 1 file changed, 3 insertions(+), 18 deletions(-) diff --git a/custom/qa-test-day.ks b/custom/qa-test-day.ks index 3569bee..4c7beeb 100644 --- a/custom/qa-test-day.ks +++ b/custom/qa-test-day.ks @@ -135,29 +135,14 @@ ln -s /usr/share/applications/test-day-welcome.desktop /etc/xdg/autostart/ # Remove anaconda welcome screen (if it exists), it would display instead of ours rm -f /home/liveuser/.config/autostart/fedora-welcome.desktop -# Change Firefox start page to open Test Day wiki and IRC chat -# (and a few more properties) -mkdir /tmp/firefox -unzip /usr/lib*/firefox/browser/omni.ja -d /tmp/firefox - -cat << FOE > /tmp/firefox/chrome/en-US/locale/branding/browserconfig.properties -browser.startup.homepage=https://fedoraproject.org/wiki/Test_Day:Current | http://webchat.freenode.net/?channels=fedora-test-day -FOE - -cat << FOE >> /tmp/firefox/defaults/preferences/firefox-branding.js +PREFDIR=`ls -d /usr/lib*/firefox/browser/defaults/preferences` +cat << FOE >> $PREFDIR/test-day.js pref("startup.homepage_welcome_url",""); pref("startup.homepage_override_url",""); pref("browser.rights.3.shown", true); +pref("browser.startup.homepage", "data:text/plain,browser.startup.homepage=https://fedoraproject.org/wiki/Test_Day:Current | http://webchat.freenode.net/?channels=fedora-test-day"); FOE -# We need to re-zip the whole archive (instead of just updating files), because -# the original archive is "Firefox optimized" and updating doesn't work -# https://bugzilla.mozilla.org/show_bug.cgi?id=605524 -OMNIJA=`ls /usr/lib*/firefox/browser/omni.ja` -rm -f $OMNIJA -(cd /tmp/firefox; zip -r -0 $OMNIJA *) -rm -rf /tmp/firefox - # Adjust launchers in dash using a vendor override. (Adding a profile would # be another way to do this.) cat << FOE >> /usr/share/glib-2.0/schemas/org.gnome.shell.gschema.override