FS#10419 - Add mime-types as a dependency to Firefox

Attached to Project: Arch Linux
Opened by Rodrigo Coacci (rcoacci) - Thursday, 15 May 2008, 03:27 GMT
Last edited by Jan de Groot (JGC) - Saturday, 26 July 2008, 10:46 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Jan de Groot (JGC)
Architecture All
Severity Low
Priority Normal
Reported Version 2007.08-2
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:
Apparently, unless we have either gnome-mime-data or /etc/mime.types (provided by mime-types pkg), Firefox fails to correctly detect mime-types.

Additional info:
* package version(s) firefox 2.0.0.14-1

Steps to reproduce:
1.Install Xfce4 as DE, Firefox and some plugins or openoffice
2.Open Firefox->Edit->Preferences->Content->File types. The list is empty but should have at least the file types for the plugins and/or openoffice files.

Probably, FF should just use fd.o desktop files, but the mime-types dep (or even gnome-mime-data) seems to be the solution for now.
This task depends upon

Closed by  Jan de Groot (JGC)
Saturday, 26 July 2008, 10:46 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixed in 3.0.1-2.
Comment by Aaron Griffin (phrakture) - Thursday, 15 May 2008, 03:37 GMT
Can you confirm that these packages fill that dialog? Way back when I investigated this the only thing that would fill the dialog on linux was editing mimetypes.rdf in your profile
Comment by Rodrigo Coacci (rcoacci) - Thursday, 15 May 2008, 11:57 GMT
For me, installing mime-types worked. I don't know about gnome-mime-data tho, I just read that FF used it somewhere.
Maybe we should ask the mailing-list about people experience?
Also, the mantainer could perform a simple test, that is installing a barebones arch (no gnome or KDE) with X, firefox and OO.org/acroreader, verify that the list is empty and then install one of the packages to see if at least OO.org and/or acrobat filetypes show up.
Comment by Greg (dolby) - Saturday, 24 May 2008, 08:21 GMT
IMO you should address this to the XFCE developers or the firefox ones. Asking mime-types to be a dependency on firefox is like eg. me asking to not depend on desktop-file-utils cause i dont have a desktop.
Comment by Rodrigo Coacci (rcoacci) - Saturday, 24 May 2008, 23:46 GMT
Xfce has nothing to do with it, I just used it as an example, because it's one of the groups that don't depend directly on mime-types. GNOME and KDE, either depends on this or provides something that firefox can use. But as for Firefox devs, maybe you're right, but since we're talking about the non-branded package, I believe that's something to be addressed on distro level.
Anyway, if you guys think that's not a ditro problem ok, I'll try to put it this advice on the wiki, so it doesn't get lost.
Comment by Adrian C. (anrxc) - Friday, 30 May 2008, 01:30 GMT
This is really annoying, I never managed to fill the list; On various distributions with various mime tweaks and workarounds. What bothers me most is that Mozilla always treated this like it works, so you can find it in various documents, tutorials, how to's... but it's broken since forever and also firefox 3 doesn't have it solved.
Comment by Rodrigo Coacci (rcoacci) - Friday, 30 May 2008, 01:35 GMT
Even installing the mime-types package didn't solve for you Adrian?
And yes, unfortunatly it's broken on FF3 also, but I managed to make ir work (just like with FF2) after a small patch in a js file that you find after some googling. Let's hope they get it right when final comes out...
I just don't get why they don't use fd.o ways just like everything else....
Comment by Adrian C. (anrxc) - Friday, 30 May 2008, 02:00 GMT
$ pacsl mime
local/gnome-mime-data 2.18.0-3 (gnome)
local/mime-types 1.0-1
local/shared-mime-info 0.23-1

About this patch, there is also one other broken thing; the external RSS reader support (i.e. using akregator)... the fix is quite simple and it's been around for a while. Those bugs are around for ages and nobody seems to care, Arch already patches Firefox, so maybe in time, small fixes like these will find their way in so all users can benefit.
Comment by JM (fijam) - Sunday, 08 June 2008, 09:08 GMT
Hello, another happy XFCE user here. This bug is a real showstopper for me, installing packages mentioned by anrxc did not help. Could someone point to that patch?
Comment by Rodrigo Coacci (rcoacci) - Sunday, 08 June 2008, 11:26 GMT
JM and Adrian: Did you delete mimeTypes.rdf AFTER installing the packages? BTW I'm talking about FF2, since FF3 is still rc the problems may yet go away when the final comes out
Comment by Adrian C. (anrxc) - Sunday, 08 June 2008, 18:30 GMT
Sure, I deleted it, tried with custom ~/.mime.types and whatnot. The problem is a little deeper, for instance even types for which I assigned an application trough the download manager don't show up in that "Applications" dialog, even though mimeTypes.rdf is updated accordingly.
Comment by Adrian C. (anrxc) - Saturday, 14 June 2008, 00:38 GMT
This dialog is completly broken, there is no way to add handlers, it doesn't reflect mimeTypes changes... now that a date for Firefox 3 is set this will stay broken (and a lot of other important things). JM take a look at this bug report https://bugzilla.mozilla.org/show_bug.cgi?id=409192 maybe that patch can solve it for you (I'm tired of patching Firefox every time a new version is released, so I give up).
Comment by Rodrigo Coacci (rcoacci) - Saturday, 14 June 2008, 14:46 GMT
Well, apparently, from now on (FF3), for this to work we'll need gconf and possibly gnome-vfs, as what I've seen on other bugs for FF3, so be ready for some new dependencies....
Comment by name withheld (Gullible Jones) - Friday, 18 July 2008, 06:13 GMT
Not upstream, works in Ubuntu (according to people on the forums anyway). User PrimoTurbo described getting it working by installing mime-types, gnome-mime-data, and gnome-vfs, and creating a new profile; not sure if it can be gotten working without the Gnome deps.
Comment by Greg (dolby) - Friday, 18 July 2008, 06:21 GMT
It works in Ubuntu....well, Ubuntu has all Gnome installed.
Doesnt mime-types conflict with the gnome mime packages?
If this get accepted it will force users to install half of gnome just to have firefox.
Not acceptable IMO.
Comment by Greg (dolby) - Friday, 18 July 2008, 06:29 GMT
http://bbs.archlinux.org/viewtopic.php?pid=394648#p394648 probably the best way to handle this.
Comment by Greg (dolby) - Friday, 18 July 2008, 06:32 GMT
Can anyone try 3.0.1 and see if its fixed? Its marked as fixed in mozilla's bugzilla
Comment by Jan de Groot (JGC) - Friday, 18 July 2008, 06:43 GMT
3.0.1 is not in the repositories yet, only in SVN trunk.
Comment by Greg (dolby) - Saturday, 19 July 2008, 09:22 GMT
Is it actually fixed as the closure request says?
Comment by name withheld (Gullible Jones) - Saturday, 19 July 2008, 15:28 GMT
Not fixed, still broken in 3.0.1.
Comment by Adrian C. (anrxc) - Saturday, 19 July 2008, 18:38 GMT
It seems that 3.0.1 was released on 16th, and the fixed went in on 17th. You can check the changlog and grab a nightly at http://www.squarefree.com/burningedge I'm posting this from that nightly snapshot and indeed it's working with only mime-types and shared-mime-info (no gnome libs/dependencies installed).

Loading...