Use Firefox as default browser if present and drop iceweasel config
authorDarshaka Pathirana <dpat@syn-net.org>
Fri, 5 May 2017 13:33:27 +0000 (15:33 +0200)
committerDarshaka Pathirana <dpat@syn-net.org>
Fri, 5 May 2017 14:56:33 +0000 (16:56 +0200)
The "Iceweasel Age"[1] has ended and we can use Firefox again and
therefore use firefox as x-www-browser.

Unfortunately overriding the default homepage via
/etc/iceweasel/profile/prefs.js does not work anymore therefor dropping
the iceweasel configuration. (See: grml/grml#18)

[1] https://lwn.net/Articles/676799/

Closes grml/grml#15

etc/grml/fai/config/files/etc/iceweasel/profile/prefs.js/GRML_FULL [deleted file]
etc/grml/fai/config/scripts/GRMLBASE/90-update-alternatives
etc/grml/fai/config/scripts/GRML_FULL/01-iceweasel [deleted file]

diff --git a/etc/grml/fai/config/files/etc/iceweasel/profile/prefs.js/GRML_FULL b/etc/grml/fai/config/files/etc/iceweasel/profile/prefs.js/GRML_FULL
deleted file mode 100644 (file)
index dd5fe1b..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-# Mozilla User Preferences
-
-/* Do not edit this file.
- *
- * If you make changes to this file while the browser is running,
- * the changes will be overwritten when the browser exits.
- *
- * To make a manual change to preferences, you can visit the URL about:config
- * For more information, see http://www.mozilla.org/unix/customizing.html#prefs
- */
-
-/* Added by grml-live */
-user_pref("browser.startup.homepage","/usr/share/doc/grml-docs/startpage.html");
-
index 3d958e5..bc67650 100755 (executable)
@@ -45,6 +45,11 @@ if $ROOTCMD update-alternatives --list x-www-browser 2>/dev/null | grep -q '/ice
   $ROOTCMD update-alternatives --set x-www-browser /usr/bin/iceweasel
 fi
 
+if $ROOTCMD update-alternatives --list x-www-browser 2>/dev/null | grep -q '/firefox-esr' ; then
+  echo "Setting firefox-esr as x-www-browser using update-alternatives."
+  $ROOTCMD update-alternatives --set x-www-browser /usr/bin/firefox-esr
+fi
+
 if $ROOTCMD update-alternatives --list www-browser 2>/dev/null | grep -q '/w3m' ; then
   echo "Setting w3m as www-browser using update-alternatives."
   $ROOTCMD update-alternatives --set www-browser /usr/bin/w3m
diff --git a/etc/grml/fai/config/scripts/GRML_FULL/01-iceweasel b/etc/grml/fai/config/scripts/GRML_FULL/01-iceweasel
deleted file mode 100755 (executable)
index 3603e57..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-#!/bin/bash
-# Filename:      ${GRML_FAI_CONFIG}/config/scripts/GRML_FULL/01-iceweasel
-# Purpose:       add startpage to Iceweasel
-# Authors:       grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
-# Bug-Reports:   see http://grml.org/bugs/
-# License:       This file is licensed under the GPL v2 or any later version.
-################################################################################
-
-set -u
-set -e
-
-fcopy -B -v /etc/iceweasel/profile/prefs.js
-
-## END OF FILE #################################################################
-# vim:ft=sh expandtab ai tw=80 tabstop=4 shiftwidth=2