mirror of
https://pagure.io/fedora-kickstarts.git
synced 2024-11-07 00:44:22 +00:00
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:
parent
df72cdca24
commit
8eb4d52259
@ -40,6 +40,27 @@ unzip
|
|||||||
%end
|
%end
|
||||||
|
|
||||||
%post
|
%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
|
# Turn off alternate pages on first firefox use or after updates
|
||||||
unzip /usr/lib/firefox-*/omni.jar defaults/preferences/firefox-branding.js -d /tmp
|
unzip /usr/lib/firefox-*/omni.jar defaults/preferences/firefox-branding.js -d /tmp
|
||||||
cat << EOF >> /tmp/defaults/preferences/firefox-branding.js
|
cat << EOF >> /tmp/defaults/preferences/firefox-branding.js
|
||||||
@ -88,7 +109,7 @@ EOF
|
|||||||
|
|
||||||
# Change the favorites using a vendor override. (Adding a profile would
|
# Change the favorites using a vendor override. (Adding a profile would
|
||||||
# be another way to do this.)
|
# 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]
|
[org.gnome.shell]
|
||||||
favorite-apps=['testday-wiki.desktop', 'testday-irc.desktop', 'liveinst.desktop', 'nautilus.desktop', 'gnome-terminal.desktop']
|
favorite-apps=['testday-wiki.desktop', 'testday-irc.desktop', 'liveinst.desktop', 'nautilus.desktop', 'gnome-terminal.desktop']
|
||||||
EOF
|
EOF
|
||||||
|
Loading…
Reference in New Issue
Block a user