/usr/share/applications/mimeinfo.cache is used for default applications
Categories
(Firefox :: File Handling, defect)
Tracking
()
People
(Reporter: dutchkind, Unassigned)
References
Details
Updated•13 years ago
|
Updated•13 years ago
|
Comment 3•13 years ago
|
||
Reporter | ||
Comment 4•13 years ago
|
||
Comment 5•13 years ago
|
||
Comment 6•13 years ago
|
||
Reporter | ||
Comment 7•13 years ago
|
||
Comment 8•13 years ago
|
||
Comment 9•13 years ago
|
||
Comment 10•13 years ago
|
||
Comment 11•13 years ago
|
||
Comment 12•13 years ago
|
||
Reporter | ||
Comment 13•13 years ago
|
||
Comment 14•13 years ago
|
||
Comment 15•13 years ago
|
||
Comment 16•13 years ago
|
||
Comment 17•13 years ago
|
||
Comment 18•13 years ago
|
||
Comment 19•13 years ago
|
||
Comment 20•13 years ago
|
||
Comment 21•13 years ago
|
||
Comment 22•12 years ago
|
||
Comment 23•12 years ago
|
||
Comment 24•11 years ago
|
||
Comment 25•11 years ago
|
||
Comment 26•11 years ago
|
||
Comment 27•11 years ago
|
||
Comment 28•11 years ago
|
||
Comment 29•11 years ago
|
||
Comment 30•10 years ago
|
||
Comment 31•10 years ago
|
||
Comment 32•10 years ago
|
||
Comment 33•9 years ago
|
||
Updated•8 years ago
|
Comment 34•4 years ago
|
||
Are you going to fix this one day? The bug exists now over a decade, the internet is full of help requests and no one seems to care …
Just use xdg-mime to make it cross desktop compatible. Gnome is just one fucking desktop on Linux, but its still the only one that is supported by Firefox.
Comment 35•4 years ago
|
||
Bug 568218 points out the correct files to use for this: mimeapps.list → defaults.list, as defined by the mime actions spec https://specifications.freedesktop.org/mime-apps-spec/latest/
The “Default Applications” section says: https://specifications.freedesktop.org/mime-apps-spec/latest/ar01s03.html
Indicating the default application for a given mimetype is done by writing into the group [Default Applications] in the file mimeapps.list.
[…]
This example ensures that the application default1.desktop will be used for mimetype1, if it's installed, and otherwise default2.desktop if it's installed:[Default Applications]
mimetype1=default1.desktop;default2.desktop
Comment 36•3 years ago
|
||
Hitting this same problem in Kubuntu 20.04.
My case is this. In /usr/share/applications/defaults.list I had this:
application/pdf=org.gnome.Evince.desktop;google-chrome.desktop
I guess the trailing ";google-chrome.desktop" was in some way added by installing Chrome.
Firefox says my default PDF application is Chrome, while all the other system components (Dolphin, xdg-mime, xdg-open) correctly say that my default is Okular.
After editing /usr/share/applications/defaults.list to remove the trailing ";google-chrome.desktop", now Firefox correctly knows my default application for PDFs is Okular. No need to restart Firefox, the change was immediate.
Strange enough, I don't have Evince installed, but many other file types are associated with Evince in that defaults.list file. I guess Evince is ignored because it is not installed. On the contrary, Chrome is installed and so it's honored by Firefox, but in this case it's skipping and ignoring my actual system settings for PDF file association.
So, there must be some problem here.
Comment 37•2 years ago
|
||
(In reply to Boris Zbarsky [:bzbarsky] from comment #6)
… xdg-mime … Bug 296443 …
See also: bug 724461, bug 893799, bug 1304650, …
Updated•2 years ago
|
Comment 38•2 years ago
|
||
The severity field for this bug is relatively low, S3. However, the bug has 14 votes.
:Gijs, could you consider increasing the bug severity?
For more information, please visit auto_nag documentation.
Comment 39•2 years ago
|
||
The last needinfo from me was triggered in error by recent activity on the bug. I'm clearing the needinfo since this is a very old bug and I don't know if it's still relevant.
Comment 40•2 years ago
|
||
It is still relevant; see for example https://bugzilla.mozilla.org/show_bug.cgi?id=1304650. https://wiki.debian.org/MIME has succinct info about the cache file, and https://bugs.launchpad.net/ubuntu/+source/gimp/+bug/574342/comments/22 describes a workaround.
You could argue that this is a desktop environment bug, but from the user perspective "the right thing" happens when they open the downloaded item via their file browser of choice, and changing the default file association in their desktop environment settings tool doesn't influence Firefox behavior. Firefox is the outlier, and ought to be using the same handler application that xdg-mime would return.
Description
•