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.
This commit is contained in:
Bruno Wolff III 2011-04-10 16:27:52 -05:00
parent df72cdca24
commit 8eb4d52259
1 changed files with 22 additions and 1 deletions

View File

@ -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