Zotero opens PDF files in GIMP, KRITA, KARBON instead of OKULAR
Zotero is wrongly opening PDF files in applications like GIMP, Krita, Karbon or others, instead of Okular, which is the default.
Environment: Linux, in particular: Debian and Ubuntu
Environment: Linux, in particular: Debian and Ubuntu
http://www.zotero.org/support/kb/file_handling_issues#pdfs_opening_in_wrong_application_on_gnulinux_systems
Short answer, for the impatient (it may not work!)
If you lazy, you can try this: ... which will add an entry under "[Default Applications]" in yourLong answer (better chances to work)
1. From command line, verify if xdg-open opens a .pdf file properly, using the application you expect, in this case: Okular. If it does not work, reinstall xdg-utils and okular 2. If still does not work, the trouble is probably in the way Firefox is obtaining the application it must launch.In Linux systems (at least it is true for Debian and derivatives), mimetypes are stored at these locations User defaults take precedence over system defaults.
In the example below you see that Okular is the first application:
(newlines and spaces added for clarity) So, edit your ~/.local/share/applications/mimeapps.list and make sure that Okular is the first application.
Also, make sure that the name for the Okular application is correct, in accordance with the way it is defined at system level. This is how you can verify its name at system level: In other words, we see that the correct name is ... in this example. So, this is the name you need to put in your