Merge branch 'qa'

This commit is contained in:
Bruno Wolff III 2011-04-10 00:03:02 -05:00
commit 72f0d81e1a

View File

@ -32,35 +32,65 @@ abiword
# brand as fedora test spin # brand as fedora test spin
fedora-logos fedora-logos
-generic-logos -generic-logos
# glib2 is needed to set up favorites
glib2
# zip and unzip are needed to tweak firefox settings
zip
unzip
%end %end
%post %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 # Set Test_Day:Current as default browser homepage
cat << EOF > `ls -1 /usr/lib*/firefox*/browserconfig.properties` 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=https://fedoraproject.org/wiki/Test_Day:Current
EOF EOF
# Create a .desktop link for Test Day wiki (cd /tmp; zip /usr/lib/firefox-*/omni.jar chrome/en-US/locale/branding/browserconfig.properties defaults/preferences/firefox-branding.js)
mkdir -p /etc/skel/Desktop rm -rf /tmp/chrome /tmp/defaults
cat << EOF > /etc/skel/Desktop/testday-wiki.desktop
# Create a directory to store global custom favorites
mkdir -p /etc/skel/.local/share/applications
# Create a favorite for the current test day wiki page
cat << EOF > /etc/skel/.local/share/applications/testday-wiki.desktop
[Desktop Entry] [Desktop Entry]
Encoding=UTF-8
Name=Participate in a Test Day Name=Participate in a Test Day
Type=Link Type=Application
URL=https://fedoraproject.org/wiki/Test_Day:Current Exec=firefox "https://fedoraproject.org/wiki/Test_Day:Current"
Icon=gnome-fs-bookmark Icon=firefox
EOF EOF
# Create a .desktop link for Test Day IRC chat # Create a favorite for Test Day IRC chat
cat << EOF > /etc/skel/Desktop/testday-irc.desktop cat << EOF > /etc/skel/.local/share/applications/testday-irc.desktop
[Desktop Entry] [Desktop Entry]
Encoding=UTF-8
Name=Connect to a Test Day chat Name=Connect to a Test Day chat
Type=Link Type=Application
URL=http://webchat.freenode.net/?channels=fedora-test-day Exec=firefox "http://webchat.freenode.net/?channels=fedora-test-day"
Icon=gnome-fs-bookmark Icon=firefox
EOF EOF
# Add gnome-terminal shortcut to desktop # Create a favorite for liveinst
cp /usr/share/applications/gnome-terminal.desktop /etc/skel/Desktop cat << EOF > /etc/skel/.local/share/applications/liveinst.desktop
[Desktop Entry]
Name=Install to hard drive
Type=Application
Exec=liveinst
Icon=anaconda
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
[org.gnome.shell]
favorite-apps=['testday-wiki.desktop', 'testday-irc.desktop', 'liveinst.desktop', 'nautilus.desktop', 'gnome-terminal.desktop']
EOF
glib-compile-schemas /usr/share/glib-2.0/schemas/
%end %end