summaryrefslogtreecommitdiffstats
path: root/custom/qa-test-day.ks
diff options
context:
space:
mode:
authorBruno Wolff III <bruno@wolff.to>2011-04-10 16:27:52 -0500
committerBruno Wolff III <bruno@wolff.to>2011-04-10 16:27:52 -0500
commit8eb4d52259dc96db067a83c3941aea9eb2483964 (patch)
tree8335d94e6ca94b9e75ff4fee39439b1316bf5326 /custom/qa-test-day.ks
parentdf72cdca24cde78e00290f3b8bd52e33a7a4ea6b (diff)
downloadspin-kickstarts-8eb4d52259dc96db067a83c3941aea9eb2483964.tar.gz
spin-kickstarts-8eb4d52259dc96db067a83c3941aea9eb2483964.tar.xz
spin-kickstarts-8eb4d52259dc96db067a83c3941aea9eb2483964.zip
qa-testday: Resolve overriding of favorite-apps issue
favorite-apps was set in persistant config for qa-testday, but only for the live enviroment in live-desktop. The latter happens later since it happens at run time, not build time. So a new section was added to do a runtime override as well so the the qa-testday favorites are used both in the live environment and after a test install.
Diffstat (limited to 'custom/qa-test-day.ks')
-rw-r--r--custom/qa-test-day.ks23
1 files changed, 22 insertions, 1 deletions
diff --git a/custom/qa-test-day.ks b/custom/qa-test-day.ks
index 953784c..0239edc 100644
--- a/custom/qa-test-day.ks
+++ b/custom/qa-test-day.ks
@@ -40,6 +40,27 @@ unzip
%end
%post
+
+cat >> /etc/rc.d/init.d/livesys << EOF
+
+# Note the following needs to be done twice, once for the live environment
+# to override what live-desktop does (so it executes after it) and a second
+# time to make a persistant config, so that tests after install still
+# have the settings to faciliate testing.
+
+# Change the favorites 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
+[org.gnome.shell]
+favorite-apps=['testday-wiki.desktop', 'testday-irc.desktop', 'liveinst.desktop', 'nautilus.desktop', 'gnome-terminal.desktop']
+FOE
+glib-compile-schemas /usr/share/glib-2.0/schemas/
+
+EOF
+
+# Note the following config setups persist after install. I think this is
+# good for qa-testday purposes, but is bad for most other purposes.
+
# 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
@@ -88,7 +109,7 @@ EOF
# Change the favorites using a vendor override. (Adding a profile would
# be another way to do this.)
-cat << EOF >> /usr/share/glib-2.0/schemas/org.gnome.shell.qa-testday.gschema.override
+cat << EOF >> /usr/share/glib-2.0/schemas/org.gnome.shell.gschema.override
[org.gnome.shell]
favorite-apps=['testday-wiki.desktop', 'testday-irc.desktop', 'liveinst.desktop', 'nautilus.desktop', 'gnome-terminal.desktop']
EOF