This forum has been archived. All content is frozen. Please use KDE Discuss instead.

mimeinfo.cache

Tags: None
(comma "," separated)
gcb
Registered Member
Posts
7
Karma
0

mimeinfo.cache

Sat Nov 11, 2017 11:02 pm
I've changed every setting i could find on KDE to open PDFs in okular, but firefox still opened them in Gimp.

only after i changed by hand the application order on /usr/share/applications/mimeinfo.cache it got fixed.

Should I open a bug for KDE applications to play nice with that file? Or should i send a patch to firefox to get this information from some other place?

thanks!
koffeinfriedhof
Registered Member
Posts
608
Karma
4
OS

Re: mimeinfo.cache

Sat Nov 11, 2017 11:57 pm
firefox is not a Qt-based application. So the kde-settings won't change its behaviour. Don't use firefox, so wait for other comments to decide. Its just a hint where to search. There are also options for GTK-Applications in Plasma.
User avatar
Rog131
Registered Member
Posts
828
Karma
10

Re: mimeinfo.cache

Sun Nov 12, 2017 11:28 am
gcb wrote:I've changed every setting i could find on KDE to open PDFs in okular, but firefox still opened them in Gimp.

only after i changed by hand the application order on /usr/share/applications/mimeinfo.cache it got fixed.

Should I open a bug for KDE applications to play nice with that file? Or should i send a patch to firefox to get this information from some other place?

thanks!


Do you have multiple mimeapps.list in your home directory ?
Something like: ~/.config/mimeapps.list and ~/.local/share/applications/mimeapps.list

Older (marked as fixed) bug report: Bug 354179 - File associations cannot be changed if already defined in $XDG_CONFIG_HOME/mimeapps.list - https://bugs.kde.org/show_bug.cgi?id=354179
ozone
Registered Member
Posts
14
Karma
0

Re: mimeinfo.cache

Wed Nov 22, 2017 4:13 pm
I think firefox doesn't even use mimeapps.list, except for fallback. And mimeapps.cache should be only the fallback of the fallback (of the fallback). So there is something going wrong pretty much here.

The first place to look is firefox settings, there is a menu to change preferred applications. It is an issue of firefox, not of KDE.
dtonhofer
Registered Member
Posts
7
Karma
0

Re: mimeinfo.cache

Sat Jun 16, 2018 12:06 am
Yes, Firefox does something weird here.

Firefox 60.0.1 here.

The Firefox Preferences say "Preview in Firefox" (there is also "Use Okular (the default)"). However I'm not 100% sure whether this applies to files download, then opened through the "downloads" menu.

Trying to open a downloaded PDF opens it in Gimp.

Once you edit /usr/share/applications/mimeinfo.cache and remove the first entry for application/pdf, which is gimp.desktop (also used for the prostscript Mimetype), Firefox is all too happy to use okular. This "one weird trick" I got from https://www.ryananddebi.com/2014/09/29/ ... foxzotero/

Running "update-desktop-database" makes gimp be listed again for handling the PDF mimetype in mimeinfo.cache, but Firefox continues to behave and loads okular to display PDFs.


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Google [Bot], q.ignora, watchstar