summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Williamson <awilliam@redhat.com>2013-10-22 09:13:24 -0700
committerAdam Williamson <awilliam@redhat.com>2013-10-22 09:14:47 -0700
commit1021a05fd1e7077312b72d10cac47bf9cffdd14f (patch)
tree6f6d6c5e17ab6d6ddd5d63cc75948e9571c5780a
parentdcebd2c540594c55277e0da6d4c9c6e9215de9b6 (diff)
downloadspin-kickstarts-1021a05fd1e7077312b72d10cac47bf9cffdd14f.tar.gz
spin-kickstarts-1021a05fd1e7077312b72d10cac47bf9cffdd14f.tar.xz
spin-kickstarts-1021a05fd1e7077312b72d10cac47bf9cffdd14f.zip
fix and simplify setting of firefox homepage in qa-test-day.ks
-rw-r--r--custom/qa-test-day.ks21
1 files 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