[spin-kickstarts: 23/24] qa-testday: Make a local liveinst.desktop
by Bruno Wolff III
commit ae3d38155c59fe1a135f04e0a5c5c486b57467a7
Author: Bruno Wolff III <bruno(a)wolff.to>
Date: Sat Apr 9 21:00:05 2011 -0500
qa-testday: Make a local liveinst.desktop
For some reason I don't know right now, the installed liveinst.desktop
gets renamed to anaconda.desktop in live-base. So until I know if that
should really be done differently, I'm adding a local one.
custom/qa-test-day.ks | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/custom/qa-test-day.ks b/custom/qa-test-day.ks
index b8a7df8..5a02a65 100644
--- a/custom/qa-test-day.ks
+++ b/custom/qa-test-day.ks
@@ -77,6 +77,15 @@ Exec=firefox "http://webchat.freenode.net/?channels=fedora-test-day"
Icon=firefox
EOF
+# 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
+
# 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
13 years
[spin-kickstarts: 22/24] Add missing line to testday-wiki favorite.
by Bruno Wolff III
commit 056803cac58f98c809425cd111616e58339c3b16
Author: Bruno Wolff III <bruno(a)wolff.to>
Date: Sat Apr 9 20:57:02 2011 -0500
Add missing line to testday-wiki favorite.
custom/qa-test-day.ks | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/custom/qa-test-day.ks b/custom/qa-test-day.ks
index 0a04c48..b8a7df8 100644
--- a/custom/qa-test-day.ks
+++ b/custom/qa-test-day.ks
@@ -61,6 +61,7 @@ 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]
Name=Participate in a Test Day
Type=Application
Exec=firefox "https://fedoraproject.org/wiki/Test_Day:Current"
13 years
[spin-kickstarts: 21/24] Adjust tweaking prerequisites to include zip and unzip.
by Bruno Wolff III
commit ea3c728d69964b8d9985b58922f277abe2aed4a6
Author: Bruno Wolff III <bruno(a)wolff.to>
Date: Sat Apr 9 19:42:01 2011 -0500
Adjust tweaking prerequisites to include zip and unzip.
custom/qa-test-day.ks | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/custom/qa-test-day.ks b/custom/qa-test-day.ks
index d9db440..0a04c48 100644
--- a/custom/qa-test-day.ks
+++ b/custom/qa-test-day.ks
@@ -32,8 +32,11 @@ abiword
# brand as fedora test spin
fedora-logos
-generic-logos
-# glib2 is needed to set up favorites, though it probably gets pulled in anyway.
+# glib2 is needed to set up favorites
glib2
+# zip and unzip are needed to tweak firefox settings
+zip
+unzip
%end
%post
13 years
[spin-kickstarts: 20/24] qa-testday: Need to override welcome page a different way.
by Bruno Wolff III
commit ccb24e2e7b43c5ae2a4b0a9fe6d1e309ed61bc1e
Author: Bruno Wolff III <bruno(a)wolff.to>
Date: Sat Apr 9 19:01:49 2011 -0500
qa-testday: Need to override welcome page a different way.
custom/qa-test-day.ks | 13 ++++++++++---
1 files changed, 10 insertions(+), 3 deletions(-)
---
diff --git a/custom/qa-test-day.ks b/custom/qa-test-day.ks
index 1925dbc..d9db440 100644
--- a/custom/qa-test-day.ks
+++ b/custom/qa-test-day.ks
@@ -37,14 +37,21 @@ glib2
%end
%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
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_override.mstone=ignore
EOF
-(cd /tmp; zip /usr/lib/firefox-*/omni.jar chrome/en-US/locale/branding/browserconfig.properties)
-rm -rf /tmp/chrome
+
+(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
# Create a directory to store global custom favorites
mkdir -p /etc/skel/.local/share/applications
13 years
[spin-kickstarts: 19/24] qa-testday: Remove unneeded encoding definition.
by Bruno Wolff III
commit ae20b8bcfbc68ce3d73d3fe99c63e72c7ddbfcb8
Author: Bruno Wolff III <bruno(a)wolff.to>
Date: Sat Apr 9 18:55:29 2011 -0500
qa-testday: Remove unneeded encoding definition.
custom/qa-test-day.ks | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
---
diff --git a/custom/qa-test-day.ks b/custom/qa-test-day.ks
index a10ebf1..1925dbc 100644
--- a/custom/qa-test-day.ks
+++ b/custom/qa-test-day.ks
@@ -60,7 +60,6 @@ EOF
# Create a favorite for Test Day IRC chat
cat << EOF > /etc/skel/.local/share/applications/testday-irc.desktop
[Desktop Entry]
-Encoding=UTF-8
Name=Connect to a Test Day chat
Type=Application
Exec=firefox "http://webchat.freenode.net/?channels=fedora-test-day"
13 years
[spin-kickstarts: 18/24] qa-testday: Add back install to hard drive favorite
by Bruno Wolff III
commit 974c944b2f72b0d6d36720a65e5fa849c39d1248
Author: Bruno Wolff III <bruno(a)wolff.to>
Date: Sat Apr 9 18:54:01 2011 -0500
qa-testday: Add back install to hard drive favorite
custom/qa-test-day.ks | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/custom/qa-test-day.ks b/custom/qa-test-day.ks
index c3ddccc..a10ebf1 100644
--- a/custom/qa-test-day.ks
+++ b/custom/qa-test-day.ks
@@ -71,7 +71,7 @@ EOF
# 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', 'nautilus.desktop', 'gnome-terminal.desktop']
+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
13 years
[spin-kickstarts: 17/24] qa-testday: Make comment reflect favorite instead of link.
by Bruno Wolff III
commit 21a1ab03f13eacdbabea59e3f7d872685d19ae1f
Author: Bruno Wolff III <bruno(a)wolff.to>
Date: Sat Apr 9 18:49:13 2011 -0500
qa-testday: Make comment reflect favorite instead of link.
custom/qa-test-day.ks | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/custom/qa-test-day.ks b/custom/qa-test-day.ks
index ac8df59..c3ddccc 100644
--- a/custom/qa-test-day.ks
+++ b/custom/qa-test-day.ks
@@ -57,7 +57,7 @@ Exec=firefox "https://fedoraproject.org/wiki/Test_Day:Current"
Icon=firefox
EOF
-# Create a .desktop link for Test Day IRC chat
+# Create a favorite for Test Day IRC chat
cat << EOF > /etc/skel/.local/share/applications/testday-irc.desktop
[Desktop Entry]
Encoding=UTF-8
13 years
[spin-kickstarts: 16/24] qa-testday: Link desktop entries don't work, use app entry instead.
by Bruno Wolff III
commit d3a88a6af5615893877ea9a371b90e7ccc40453e
Author: Bruno Wolff III <bruno(a)wolff.to>
Date: Sat Apr 9 18:48:09 2011 -0500
qa-testday: Link desktop entries don't work, use app entry instead.
custom/qa-test-day.ks | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/custom/qa-test-day.ks b/custom/qa-test-day.ks
index b5c8030..ac8df59 100644
--- a/custom/qa-test-day.ks
+++ b/custom/qa-test-day.ks
@@ -62,9 +62,9 @@ cat << EOF > /etc/skel/.local/share/applications/testday-irc.desktop
[Desktop Entry]
Encoding=UTF-8
Name=Connect to a Test Day chat
-Type=Link
-URL=http://webchat.freenode.net/?channels=fedora-test-day
-Icon=gnome-fs-bookmark
+Type=Application
+Exec=firefox "http://webchat.freenode.net/?channels=fedora-test-day"
+Icon=firefox
EOF
# Change the favorites using a vendor override. (Adding a profile would
13 years
[spin-kickstarts: 15/24] qa-testday: Replace firefox favorite with test day wiki favorite.
by Bruno Wolff III
commit 54f86c48a775ad598e82a811db071bf18ac8349a
Author: Bruno Wolff III <bruno(a)wolff.to>
Date: Sat Apr 9 18:46:43 2011 -0500
qa-testday: Replace firefox favorite with test day wiki favorite.
custom/qa-test-day.ks | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/custom/qa-test-day.ks b/custom/qa-test-day.ks
index 0e03ff6..b5c8030 100644
--- a/custom/qa-test-day.ks
+++ b/custom/qa-test-day.ks
@@ -49,6 +49,14 @@ rm -rf /tmp/chrome
# 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
+Name=Participate in a Test Day
+Type=Application
+Exec=firefox "https://fedoraproject.org/wiki/Test_Day:Current"
+Icon=firefox
+EOF
+
# Create a .desktop link for Test Day IRC chat
cat << EOF > /etc/skel/.local/share/applications/testday-irc.desktop
[Desktop Entry]
@@ -63,7 +71,7 @@ EOF
# 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=['mozilla-firefox.desktop', 'nautilus.desktop', 'testday-irc.desktop', 'gnome-terminal.desktop']
+favorite-apps=['testday-wiki.desktop', 'testday-irc.desktop', 'nautilus.desktop', 'gnome-terminal.desktop']
EOF
glib-compile-schemas /usr/share/glib-2.0/schemas/
%end
13 years
[spin-kickstarts: 14/24] qa-test-day: override urls don't stick, try to ignore them instead.
by Bruno Wolff III
commit 998da55f54aa642f9a2c6a396829a40fca9be6bd
Author: Bruno Wolff III <bruno(a)wolff.to>
Date: Sat Apr 9 17:02:03 2011 -0500
qa-test-day: override urls don't stick, try to ignore them instead.
custom/qa-test-day.ks | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/custom/qa-test-day.ks b/custom/qa-test-day.ks
index 9189ea1..0e03ff6 100644
--- a/custom/qa-test-day.ks
+++ b/custom/qa-test-day.ks
@@ -41,8 +41,7 @@ glib2
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
-startup.homepage_override_url=''
-startup.homepage_welcome_url=''
+browser.startup.homepage_override.mstone=ignore
EOF
(cd /tmp; zip /usr/lib/firefox-*/omni.jar chrome/en-US/locale/branding/browserconfig.properties)
rm -rf /tmp/chrome
13 years