From ccb24e2e7b43c5ae2a4b0a9fe6d1e309ed61bc1e Mon Sep 17 00:00:00 2001 From: Bruno Wolff III Date: Sat, 9 Apr 2011 19:01:49 -0500 Subject: [PATCH] qa-testday: Need to override welcome page a different way. --- custom/qa-test-day.ks | 13 ++++++++++--- 1 file 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