[Fedora-spins] [spin-kickstarts: 20/24] qa-testday: Need to override welcome page a different way.

Bruno Wolff III bruno at fedoraproject.org
Sun Apr 10 05:05:09 UTC 2011


commit ccb24e2e7b43c5ae2a4b0a9fe6d1e309ed61bc1e
Author: Bruno Wolff III <bruno at wolff.to>
Date:   Sat Apr 9 19:01:49 2011 -0500

    qa-testday: Need to override welcome page a different way.

 custom/qa-test-day.ks |   13 ++++++++++---
 1 files changed, 10 insertions(+), 3 deletions(-)
---
diff --git a/custom/qa-test-day.ks b/custom/qa-test-day.ks
index 1925dbc..d9db440 100644
--- a/custom/qa-test-day.ks
+++ b/custom/qa-test-day.ks
@@ -37,14 +37,21 @@ glib2
 %end
 
 %post
+# Turn off alternate pages on first firefox use or after updates
+unzip /usr/lib/firefox-*/omni.jar defaults/preferences/firefox-branding.js -d /tmp
+cat << EOF >> /tmp/defaults/preferences/firefox-branding.js
+pref("startup.homepage_welcome_url","");
+pref("startup.homepage_override_url","");
+EOF
+
 # Set Test_Day:Current as default browser homepage
 mkdir -p /tmp/chrome/en-US/locale/branding
 cat << EOF > /tmp/chrome/en-US/locale/branding/browserconfig.properties
 browser.startup.homepage=https://fedoraproject.org/wiki/Test_Day:Current
-browser.startup.homepage_override.mstone=ignore
 EOF
-(cd /tmp; zip /usr/lib/firefox-*/omni.jar chrome/en-US/locale/branding/browserconfig.properties)
-rm -rf /tmp/chrome
+
+(cd /tmp; zip /usr/lib/firefox-*/omni.jar chrome/en-US/locale/branding/browserconfig.properties defaults/preferences/firefox-branding.js)
+rm -rf /tmp/chrome /tmp/defaults
 
 # Create a directory to store global custom favorites
 mkdir -p /etc/skel/.local/share/applications


More information about the spins mailing list