Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#4161 - Firefox and MIME type mix up

Attached to Project: Arch Linux
Opened by Eugenia Loli-Queru (Eugenia) - Monday, 13 March 2006, 21:46 GMT
Last edited by Alexander Baldeck (kth5) - Friday, 18 May 2007, 00:17 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Jan de Groot (JGC)
Alexander Baldeck (kth5)
Architecture All
Severity Medium
Priority Normal
Reported Version 0.7.1 Noodle
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

I installed the latest version of Comix ( http://www.gnomefiles.org/app.php?soft_id=1055 ) and since then, Firefox is insisting on opening all .tar.gz files with Comix instead of Gnome's archive manager (as the default should be). Of course, I emailed the author and reported the bug to him, but he insists that the bug is either in Firefox or in Gnome and not in his application. I copy below his reply:

*******
Something has changed, the desktop file (comix.desktop) now includes
information about the supported mime types (application/x-gzip among others).

The thing is that the desktop files (which conforms to a freedesktop.org
standard -
http://www.freedesktop.org/wiki/Standards_2fdesktop_2dentry_2dspec) does
not say anything about which applications should be the default for
different mime types. To quote a portion of the standard:

"The MimeType key is used to indicate the MIME Types that an
application knows how to handle. Applications that can handle multiple
MIME Types would list all of the ones it can handle in a ';' separated
list, as normal. It is expected that for some applications this list
could become long. An application is expected to be able to reasonably
open files of these types using the command listed in the Exec keyword.

There should be no priority for MIME Types in this field, or any form of
priority in the desktop file. Priority for applications is handled
external to the .desktop files."

So how to use this data, how to choose a default application and how to let
the user change the choices is up to the specific program (e.g. Nautilus,
Firefox, etc.) that wants to open the file with another application (e.g.
Archive Manager, Comix, etc.). So unless I am much mistaken, if Firefox
does not let you change it's default choice (which happened to be Comix for
some reason), it's rather a bug in Firefox than anything else.

Regards,
Pontus
*********

So, *if* that's not his bug, then it's a bug in Arch Linux as far as I am concerned.
This task depends upon

Closed by  Alexander Baldeck (kth5)
Friday, 18 May 2007, 00:17 GMT
Reason for closing:  Works for me
Additional comments about closing:  works outside of gnome
Comment by Jan de Groot (JGC) - Monday, 13 March 2006, 21:52 GMT
For GNOME, you could right-click one of the offended files, select properties and then select the default application in the "open with" tab. All gnome applications should pick it up. I don't know what firefox does with this MIME stuff, you have to find out about that.
Comment by arjan timmerman (blaasvis) - Saturday, 25 March 2006, 22:54 GMT
MimeType=image/jpeg;image/png;image/gif;image/tiff;image/tiff;image/bmp;
image/x-icon;image/x-xpixmap;image/x-xbitmap;application/x-zip;application/zip;
application/x-rar;application/x-tar;application/x-gzip;application/x-bzip2;
application/x-cbz;application/x-cbr;application/x-cbt;

this is the cause of you problem, also it is impossible to assign priority's to mime types.
see the specs @fd.o : http://standards.freedesktop.org/desktop-entry-spec/latest/ar01s07.html#mime-priority

so this isn't a bug in archlinux, but also no bug in his app.

try the solution JGC gave you.
Comment by Jan de Groot (JGC) - Sunday, 13 August 2006, 15:36 GMT
This is not just a firefox issue. When gnome is installed, firefox will use gnome for mime handling. When gnome isn't installed, it will fallback to the mailcap and mime.types files in /etc, which aren't filled on archlinux.

Loading...