[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Switch to iceweasel as the default browser?



Here is a draft patch for debian-edu-config to make iceweasel the
default browser.  I plan to upload it tomorrow if no good argument
against the change is made.

  * Make iceweasel the default browser, as it handle multimedia and
    flash better than konqueror.
    - Use it as the x-www-browser alternative using
      etc/apt/apt.conf.d/99-edu-prefer-iceweasel.
    - Tell KDE to use it in
      /usr/share/debian-edu/common/share/config/kdeglobals.
    - Make it show up in the kde panel for all users using
      /usr/share/debian-edu/common/share/apps/kicker/default-apps.

Index: share/debian-edu/common/share/apps/kicker/default-apps
===================================================================
--- share/debian-edu/common/share/apps/kicker/default-apps      (revision 0)
+++ share/debian-edu/common/share/apps/kicker/default-apps      (revision 0)
@@ -0,0 +1,3 @@
+Home.desktop
+iceweasel.desktop
+ooo-writer.desktop
Index: share/debian-edu/common/share/config/kdeglobals
===================================================================
--- share/debian-edu/common/share/config/kdeglobals     (revision 0)
+++ share/debian-edu/common/share/config/kdeglobals     (revision 0)
@@ -0,0 +1,2 @@
+[General]
+BrowserApplication=!x-www-browser
Index: etc/apt/apt.conf.d/99-edu-prefer-iceweasel
===================================================================
--- etc/apt/apt.conf.d/99-edu-prefer-iceweasel  (revision 0)
+++ etc/apt/apt.conf.d/99-edu-prefer-iceweasel  (revision 0)
@@ -0,0 +1,6 @@
+// We prefer iceweasel over other alternatives (goddammit!)
+
+DPkg
+{
+Post-Invoke {"if [ -x /usr/sbin/update-alternatives ] && [ -x /usr/bin/iceweasel ]; then /usr/sbin/update-alternatives --set x-www-browser /usr/bin/iceweasel; else exit 0; fi";};
+};
Index: Makefile
===================================================================
--- Makefile    (revision 44650)
+++ Makefile    (working copy)
@@ -61,6 +61,7 @@

 # Files to install in /etc/
 SYSCONFFILES = \
+       apt/apt.conf.d/99-edu-prefer-iceweasel \
        X11/Xsession.d/05debian-edu-truncate-xerrorlog \
        X11/Xsession.d/10debian-edu-one-login-per-host \
        X11/Xsession.d/10debian-edu-set-umask \
@@ -280,7 +281,9 @@
        done

        set -e ; for f in share/debian-edu/common/share/config/kcookiejarrc \
+               share/debian-edu/common/share/apps/kicker/default-apps \
                share/debian-edu/common/share/config/artsmessagerc \
+               share/debian-edu/common/share/config/kdeglobals \
                share/debian-edu/common/share/config/kdeprintrc \
                share/debian-edu/common/share/config/kpersonalizerrc \
                share/debian-edu/common/share/config/konquerorrc \

Happy hacking,
-- 
Petter Reinholdtsen


Reply to: