2010-06-07 05:02:00 +00:00
|
|
|
%include ../fedora-livecd-desktop.ks
|
2009-09-07 20:26:30 +00:00
|
|
|
|
|
|
|
%packages
|
|
|
|
gdb
|
|
|
|
strace
|
|
|
|
ltrace
|
|
|
|
libdrm
|
|
|
|
pidgin
|
|
|
|
mc
|
|
|
|
vim
|
|
|
|
nano
|
|
|
|
wget
|
|
|
|
xorg-x11-apps
|
|
|
|
gtk-recordmydesktop
|
|
|
|
gconf-editor
|
|
|
|
gimp
|
2010-02-04 15:24:01 +00:00
|
|
|
nautilus-open-terminal
|
|
|
|
abiword
|
2009-09-07 20:26:30 +00:00
|
|
|
# save some space
|
|
|
|
-empathy
|
2010-02-04 15:24:01 +00:00
|
|
|
-gnome-games
|
2009-09-07 20:26:30 +00:00
|
|
|
-brasero*
|
|
|
|
-sound-juicer
|
|
|
|
-gthumb
|
|
|
|
-gnome-backgrounds
|
|
|
|
-desktop-backgrounds*
|
|
|
|
-evolution
|
2010-02-04 15:24:01 +00:00
|
|
|
-shotwell
|
|
|
|
-planner
|
|
|
|
-openoffice*
|
|
|
|
-java*
|
2009-09-07 20:26:30 +00:00
|
|
|
# brand as fedora test spin
|
|
|
|
fedora-logos
|
|
|
|
-generic-logos
|
2011-04-10 00:42:01 +00:00
|
|
|
# glib2 is needed to set up favorites
|
2011-04-09 06:09:15 +00:00
|
|
|
glib2
|
2011-04-10 00:42:01 +00:00
|
|
|
# zip and unzip are needed to tweak firefox settings
|
|
|
|
zip
|
|
|
|
unzip
|
2009-09-07 20:26:30 +00:00
|
|
|
%end
|
|
|
|
|
|
|
|
%post
|
2011-04-10 21:27:52 +00:00
|
|
|
|
|
|
|
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.
|
|
|
|
|
2011-04-10 00:01:49 +00:00
|
|
|
# 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
|
|
|
|
|
2009-09-07 20:26:30 +00:00
|
|
|
# Set Test_Day:Current as default browser homepage
|
2011-04-09 16:41:54 +00:00
|
|
|
mkdir -p /tmp/chrome/en-US/locale/branding
|
|
|
|
cat << EOF > /tmp/chrome/en-US/locale/branding/browserconfig.properties
|
2009-09-07 20:26:30 +00:00
|
|
|
browser.startup.homepage=https://fedoraproject.org/wiki/Test_Day:Current
|
|
|
|
EOF
|
2011-04-10 00:01:49 +00:00
|
|
|
|
|
|
|
(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
|
2009-09-07 20:26:30 +00:00
|
|
|
|
2011-04-09 20:28:12 +00:00
|
|
|
# Create a directory to store global custom favorites
|
2011-04-09 21:45:40 +00:00
|
|
|
mkdir -p /etc/skel/.local/share/applications
|
2011-04-09 20:28:12 +00:00
|
|
|
|
2011-04-09 23:46:43 +00:00
|
|
|
# Create a favorite for the current test day wiki page
|
|
|
|
cat << EOF > /etc/skel/.local/share/applications/testday-wiki.desktop
|
2011-04-10 01:57:02 +00:00
|
|
|
[Desktop Entry]
|
2011-04-09 23:46:43 +00:00
|
|
|
Name=Participate in a Test Day
|
|
|
|
Type=Application
|
|
|
|
Exec=firefox "https://fedoraproject.org/wiki/Test_Day:Current"
|
|
|
|
Icon=firefox
|
|
|
|
EOF
|
|
|
|
|
2011-04-09 23:49:13 +00:00
|
|
|
# Create a favorite for Test Day IRC chat
|
2011-04-09 20:24:35 +00:00
|
|
|
cat << EOF > /etc/skel/.local/share/applications/testday-irc.desktop
|
2009-09-07 20:26:30 +00:00
|
|
|
[Desktop Entry]
|
|
|
|
Name=Connect to a Test Day chat
|
2011-04-09 23:48:09 +00:00
|
|
|
Type=Application
|
|
|
|
Exec=firefox "http://webchat.freenode.net/?channels=fedora-test-day"
|
|
|
|
Icon=firefox
|
2009-09-07 20:26:30 +00:00
|
|
|
EOF
|
|
|
|
|
2011-04-10 02:00:05 +00:00
|
|
|
# Create a favorite for liveinst
|
|
|
|
cat << EOF > /etc/skel/.local/share/applications/liveinst.desktop
|
|
|
|
[Desktop Entry]
|
|
|
|
Name=Install to hard drive
|
|
|
|
Type=Application
|
|
|
|
Exec=liveinst
|
|
|
|
Icon=anaconda
|
|
|
|
EOF
|
|
|
|
|
2011-04-09 06:09:15 +00:00
|
|
|
# Change the favorites using a vendor override. (Adding a profile would
|
|
|
|
# be another way to do this.)
|
2011-04-10 21:27:52 +00:00
|
|
|
cat << EOF >> /usr/share/glib-2.0/schemas/org.gnome.shell.gschema.override
|
2011-04-09 18:43:21 +00:00
|
|
|
[org.gnome.shell]
|
2011-04-09 23:54:01 +00:00
|
|
|
favorite-apps=['testday-wiki.desktop', 'testday-irc.desktop', 'liveinst.desktop', 'nautilus.desktop', 'gnome-terminal.desktop']
|
2011-04-09 06:09:15 +00:00
|
|
|
EOF
|
2011-04-09 14:52:02 +00:00
|
|
|
glib-compile-schemas /usr/share/glib-2.0/schemas/
|
2009-09-07 20:26:30 +00:00
|
|
|
%end
|