Commit 60193406 authored by Jan Groenewald's avatar Jan Groenewald
Browse files

Add update-alternatives to latest firefox

parent 41696bef
...@@ -7,6 +7,7 @@ rm -rf /usr/local/lib/firefox ...@@ -7,6 +7,7 @@ rm -rf /usr/local/lib/firefox
wget -cO /tmp/FirefoxSetup.tar.bz2 "https://download.mozilla.org/?product=firefox-latest&os=linux64&lang=en-ZA" wget -cO /tmp/FirefoxSetup.tar.bz2 "https://download.mozilla.org/?product=firefox-latest&os=linux64&lang=en-ZA"
mkdir -p /usr/local/lib/firefox mkdir -p /usr/local/lib/firefox
tar -xf /tmp/FirefoxSetup.tar.bz2 -C /usr/local/lib/ tar -xf /tmp/FirefoxSetup.tar.bz2 -C /usr/local/lib/
cp -f /usr/share/applications/firefox-esr.desktop /usr/share/applications/firefox.desktop cp -f /usr/share/applications/firefox-esr.desktop /usr/share/applications/firefox.desktop
sed -i 's/Firefox ESR/Firefox/' /usr/share/applications/firefox.desktop sed -i 's/Firefox ESR/Firefox/' /usr/share/applications/firefox.desktop
sed -i 's#Exec=/usr/lib/firefox-esr/firefox-esr %u#Exec=/usr/local/lib/firefox/firefox %u#' /usr/share/applications/firefox.desktop sed -i 's#Exec=/usr/lib/firefox-esr/firefox-esr %u#Exec=/usr/local/lib/firefox/firefox %u#' /usr/share/applications/firefox.desktop
...@@ -14,5 +15,10 @@ sed -i 's/StartupWMClass=Firefox-esr/StartupWMClass=Firefox/' /usr/share/applica ...@@ -14,5 +15,10 @@ sed -i 's/StartupWMClass=Firefox-esr/StartupWMClass=Firefox/' /usr/share/applica
export VERSION=`/usr/local/lib/firefox/firefox --version|cut -d' ' -f3` export VERSION=`/usr/local/lib/firefox/firefox --version|cut -d' ' -f3`
sed -i "s/Name=Firefox/Name=Firefox $VERSION/" /usr/share/applications/firefox.desktop sed -i "s/Name=Firefox/Name=Firefox $VERSION/" /usr/share/applications/firefox.desktop
update-desktop-database /usr/share/applications/ update-desktop-database /usr/share/applications/
[ -L /usr/local/bin/firefox ] || ln -s /usr/local/lib/firefox/firefox /usr/local/bin/firefox
update-alternatives --install /usr/bin/x-www-browser x-www-browser /usr/local/ lib/firefox/firefox 1
update-alternatives --set x-www-browser /usr/local/lib/firefox/firefox
update-alternatives --install /usr/bin/gnome-www-browser gnome-www-browser /usr/local/lib/firefox/firefox 1
update-alternatives --set gnome-www-browser /usr/local/lib/firefox/firefox
[ -L /usr/local/bin/firefox ] || ln -s /usr/local/lib/firefox/firefox /usr/local/bin/firefox
aims-desktop (1:2019.03.04) stretch; urgency=medium
* Add update-alternatives for latest-firefox
-- Jan Groenewald <jan@aims.ac.za> Mon, 25 Mar 2019 10:48:29 +0000
aims-desktop (1:2019.03.03) stretch; urgency=medium aims-desktop (1:2019.03.03) stretch; urgency=medium
* Fixes to aims-install-latest-firefox * Fixes to aims-install-latest-firefox
......
...@@ -7,6 +7,7 @@ rm -rf /usr/local/lib/firefox ...@@ -7,6 +7,7 @@ rm -rf /usr/local/lib/firefox
wget -cO /tmp/FirefoxSetup.tar.bz2 "https://download.mozilla.org/?product=firefox-latest&os=linux64&lang=en-ZA" wget -cO /tmp/FirefoxSetup.tar.bz2 "https://download.mozilla.org/?product=firefox-latest&os=linux64&lang=en-ZA"
mkdir -p /usr/local/lib/firefox mkdir -p /usr/local/lib/firefox
tar -xf /tmp/FirefoxSetup.tar.bz2 -C /usr/local/lib/ tar -xf /tmp/FirefoxSetup.tar.bz2 -C /usr/local/lib/
cp -f /usr/share/applications/firefox-esr.desktop /usr/share/applications/firefox.desktop cp -f /usr/share/applications/firefox-esr.desktop /usr/share/applications/firefox.desktop
sed -i 's/Firefox ESR/Firefox/' /usr/share/applications/firefox.desktop sed -i 's/Firefox ESR/Firefox/' /usr/share/applications/firefox.desktop
sed -i 's#Exec=/usr/lib/firefox-esr/firefox-esr %u#Exec=/usr/local/lib/firefox/firefox %u#' /usr/share/applications/firefox.desktop sed -i 's#Exec=/usr/lib/firefox-esr/firefox-esr %u#Exec=/usr/local/lib/firefox/firefox %u#' /usr/share/applications/firefox.desktop
...@@ -14,5 +15,10 @@ sed -i 's/StartupWMClass=Firefox-esr/StartupWMClass=Firefox/' /usr/share/applica ...@@ -14,5 +15,10 @@ sed -i 's/StartupWMClass=Firefox-esr/StartupWMClass=Firefox/' /usr/share/applica
export VERSION=`/usr/local/lib/firefox/firefox --version|cut -d' ' -f3` export VERSION=`/usr/local/lib/firefox/firefox --version|cut -d' ' -f3`
sed -i "s/Name=Firefox/Name=Firefox $VERSION/" /usr/share/applications/firefox.desktop sed -i "s/Name=Firefox/Name=Firefox $VERSION/" /usr/share/applications/firefox.desktop
update-desktop-database /usr/share/applications/ update-desktop-database /usr/share/applications/
[ -L /usr/local/bin/firefox ] || ln -s /usr/local/lib/firefox/firefox /usr/local/bin/firefox
update-alternatives --install /usr/bin/x-www-browser x-www-browser /usr/local/ lib/firefox/firefox 1
update-alternatives --set x-www-browser /usr/local/lib/firefox/firefox
update-alternatives --install /usr/bin/gnome-www-browser gnome-www-browser /usr/local/lib/firefox/firefox 1
update-alternatives --set gnome-www-browser /usr/local/lib/firefox/firefox
[ -L /usr/local/bin/firefox ] || ln -s /usr/local/lib/firefox/firefox /usr/local/bin/firefox
aims-desktop (2020.19) buster; urgency=medium
* Add update-alternatives to latest-firefox
-- Jan Groenewald <jan@aims.ac.za> Mon, 25 Mar 2019 10:49:42 +0000
aims-desktop (2020.18) buster; urgency=medium aims-desktop (2020.18) buster; urgency=medium
* Fix aims-install-latest-firefox * Fix aims-install-latest-firefox
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment