Package: mime-support
Version: 3.39-1
Severity: serious
Justification: ignores local admin's preferences[1]
--- Please enter the report below this line. ---
Hello,
I have set my alternatives[1] for x-www-browser and gnome-www-browser as
follows:
LANG=C /usr/sbin/update-alternatives --display x-www-browser
x-www-browser - status is manual.
link currently points to /usr/bin/iceweasel
/usr/bin/xlinks2 - priority 69
slave x-www-browser.1.gz: /usr/share/man/man1/xlinks2.1.gz
/usr/bin/iceweasel - priority 70
slave x-www-browser.1.gz: /usr/share/man/man1/iceweasel.1.gz
/usr/bin/epiphany - priority 85
slave x-www-browser.1.gz: /usr/share/man/man1/epiphany.1.gz
Current `best' version is /usr/bin/epiphany.
LANG=C /usr/sbin/update-alternatives --display gnome-www-browser
gnome-www-browser - status is manual.
link currently points to /usr/bin/firefox
/usr/bin/firefox - priority 70
slave gnome-www-browser.1.gz: /usr/share/man/man1/firefox.1.gz
/usr/bin/iceweasel - priority 70
slave gnome-www-browser.1.gz: /usr/share/man/man1/iceweasel.1.gz
/usr/bin/epiphany - priority 85
slave gnome-www-browser.1.gz: /usr/share/man/man1/epiphany.1.gz
/usr/bin/galeon - priority 120
slave gnome-www-browser.1.gz: /usr/share/man/man1/galeon.1.gz
Current `best' version is /usr/bin/galeon.
Also, my BROWSER environment variable:
env | grep BROW
BROWSER=firefox %s
And at this point, *by*pure*coincidence*, the mailcap info is somewhat
correctly set, using iceweasel for html:
grep -i 'text/html' /etc/mailcap
text/html; /usr/bin/iceweasel '%s'; description=HTML Text; test=test -n
"$DISPLAY"; nametemplate=%s.html
text/html; /usr/bin/w3m -T text/html '%s'; needsterminal;
description=HTML Text; nametemplate=%s.html
text/html; /usr/bin/w3m -dump -T text/html '%s'; copiousoutput;
description=HTML Text; nametemplate=%s.html
text/html; /usr/bin/html2text '%s'; copiousoutput; description=HTML Text
text/html; /usr/bin/sensible-browser '%s'; description=HTML Text;
nametemplate=%s.html
If I install also galeon, the damn thing breaks to pieces and all my
alternatives and BROWSER settings are simply ignored (as they were
before, but I was lucky):
grep -i 'text/html' /etc/mailcap
text/html; /usr/bin/galeon '%s'; description=HTML Text; test=test -n
"$DISPLAY"; nametemplate=%s.html
text/html; /usr/bin/iceweasel '%s'; description=HTML Text; test=test -n
"$DISPLAY"; nametemplate=%s.html
text/html; /usr/bin/w3m -T text/html '%s'; needsterminal;
description=HTML Text; nametemplate=%s.html
text/html; /usr/bin/w3m -dump -T text/html '%s'; copiousoutput;
description=HTML Text; nametemplate=%s.html
text/html; /usr/bin/html2text '%s'; copiousoutput; description=HTML Text
text/html; /usr/bin/sensible-browser '%s'; description=HTML Text;
nametemplate=%s.html
Also, I suspect that if I remove and then install iceweasel I will get
the desired effect, but this would mean I will always get as default the
latest installed browser, which is wrong. I just tested this and,
weirdly, no, this was not what happened - woohoo, more weird behaviour.
As a fix I propose sensible-browser to be, by default and always, the
first handler for text/html. Note that by doing this you are fixing also
displaying html even on pure text consoles and respect the alternatives,
at the same time.
from sensible-browser(1):
DESCRIPTION
sensible-editor, sensible-pager and sensible-browser make
sensible decisions on which editor, pager,
and web browser to call, respectively. Programs in Debian can
use these scripts as their default
editor, pager, or web browser or emulate their behavior.
Judging from the code from /usr/bin/sensible-browser, one can easily see
that it will always do the right thing.
Notes:
- sensible-browser is part of the essential package debianutils, so
there's no extra dep needed or something like that.
- of course, mailcap.order can override this, as usual, but the default
behaviour will no longer be broken.
[1] http://www.debian.org/doc/debian-policy/ap-pkg-alternatives.html
--- System information. ---
Architecture: amd64
Kernel: Linux 2.6.24.2-bounty
Debian Release: lenny/sid
900 testing security.debian.org
900 testing ftp.ro.debian.org
10 unstable ftp.ro.debian.org
--- Package information. ---
Depends (Version) | Installed
=======================-+-===========
|
--
Regards,
EddyP
=============================================
"Imagination is more important than knowledge" A.Einstein
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]