mirror of
https://pagure.io/fedora-kickstarts.git
synced 2024-11-09 23:50:07 +00:00
Change how the startup page is modified.
Recent firefox versions keep the properties in a zip archive. So the appropriate file needs to be extracted, modified and put back into the archive.
This commit is contained in:
parent
6d5907d4d4
commit
7003848a4b
@ -38,9 +38,12 @@ glib2
|
|||||||
|
|
||||||
%post
|
%post
|
||||||
# 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`
|
unzip -c /usr/lib/firefox-*/omni.jar chrome/en-US/locale/browser/browser.properties -d /tmp
|
||||||
|
cat << EOF > /tmp/chrome/en-US/locale/browser/browser.properties
|
||||||
browser.startup.homepage=https://fedoraproject.org/wiki/Test_Day:Current
|
browser.startup.homepage=https://fedoraproject.org/wiki/Test_Day:Current
|
||||||
EOF
|
EOF
|
||||||
|
(cd /tmp; zip /usr/lib/firefox-*/omni.jar chrome/en-US/locale/browser/browser.properties)
|
||||||
|
rm -f /tmp/chrome/en-US/locale/browser/browser.properties
|
||||||
|
|
||||||
# Create a .desktop link for Test Day wiki
|
# Create a .desktop link for Test Day wiki
|
||||||
mkdir -p /etc/skel/Desktop
|
mkdir -p /etc/skel/Desktop
|
||||||
|
Loading…
Reference in New Issue
Block a user