Firefox should prefer GNOME/freedesktop mime system over mailcap.

Bug #24883 reported by Juha Sahakangas
This bug report is a duplicate of:  Bug #13373: Unified mime type handling. Edit Remove
12
Affects Status Importance Assigned to Milestone
firefox (Ubuntu)
Invalid
Medium
Ian Jackson

Bug Description

Firefox supports GNOME mime system, but it currently only uses it as last
resort, if application isn't found in /etc/mailcap. This should be the other way
around, since Firefox is a desktop application.

Steps to reproduce: follow a link to a file of a type that firefox doesn't
handle internally and has different handler in mailcap than in gnome mime system.
Good examples are text subtypes, for example .c source code, text/x-csrc. Notice
that firefox wants to open the file with less, instead of gedit.

Comment out the three text/* entries in /etc/mailcap and perform the test again,
firefox now correctly proposes gedit for opening the file.

Revision history for this message
Juha Sahakangas (juhaz) wrote :

Created an attachment (id=4849)
Test case.

Revision history for this message
Ernst Persson (ernstp) wrote :

Would be great if it was fixed!

But perhaps it's a bug in mailcap also, that it says less instead of gedit?

Revision history for this message
David Mandelberg (dseomn) wrote :

I think the package should be changed to firefox-gnome-support because it's
gnome-related.

Revision history for this message
Matt Zimmerman (mdz) wrote :

(In reply to comment #3)
> I think the package should be changed to firefox-gnome-support because it's
> gnome-related.

No, that is a separate package (and indeed, XDG MIME is not GNOME-specific).

At any rate, this is a duplicate of #7023

This bug has been marked as a duplicate of bug 13373.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.