Registered Member
|
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! |
Registered Member
|
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.
|
Registered Member
|
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 |
Registered Member
|
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. |
Registered Member
|
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. |
Registered users: bartoloni, Bing [Bot], Google [Bot], q.ignora, watchstar