Zotero 4.0.12 does not respect "Always ask" action for PDF files
Hello,
I'm using Zotero 4.0.12 with Firefox 23 on Linux x86_64.
As the title says, Zotero 4.0.12 does not respect the "Always ask" action for PDF files. It actually works for the current session but not after I restart Firefox.
Steps to reproduce:
1. Set the action for PDF documents to "Always ask" (using the Firefox preferences dialog).
2. Restart Firefox
3. Double-click on a document in the Zotero library.
Result: Zotero opens the document in the default document viewer or previews the document in Firefox using the internal pdf viewer (observation: It actually executes the last non-"Always ask" action).
Expected result: Zotero should popup the "You have chosen to open..” dialog.
Cheers!
I'm using Zotero 4.0.12 with Firefox 23 on Linux x86_64.
As the title says, Zotero 4.0.12 does not respect the "Always ask" action for PDF files. It actually works for the current session but not after I restart Firefox.
Steps to reproduce:
1. Set the action for PDF documents to "Always ask" (using the Firefox preferences dialog).
2. Restart Firefox
3. Double-click on a document in the Zotero library.
Result: Zotero opens the document in the default document viewer or previews the document in Firefox using the internal pdf viewer (observation: It actually executes the last non-"Always ask" action).
Expected result: Zotero should popup the "You have chosen to open..” dialog.
Cheers!
Basically, that dialog is never supposed to show up to begin with—it doesn't really make sense, since it offers an option to save the file, and even the absurd option to save the file back into Zotero. So the fact that you're seeing it all is the actual bug here.
I think what's happening is that when the setting is changed from viewing internally to Always Ask, Firefox doesn't update the list of internally supported file types, so Zotero checks that, thinks that the file is supported internally, and opens the file in Firefox, which triggers that dialog. When you restart, the list of supported file types is refreshed, Zotero sees that the file type isn't supported internally, and it launches the file via the OS as it's supposed to.
I see how it is supposed to work now. What I'd like to do is to somehow be able choose the PDF viewer at runtime. I have Evince and Xournal installed and, although I primarily use Evince, I sometimes want to use Xournal (for annotating the document).
So, for now I've settled with this : I preview the document in Firefox by default (set as default action) and use the little download arrow in pdf.js to display the "You have chosen to open..” dialog. That way I can take any action I want.
Do you see any other way of achieving the same result but with fewer clicks?
Thanks!
EDIT: I ended up installing Thunar which seems the most practical thing to do.
[1] https://mxr.mozilla.org/mozilla-central/source/xpcom/io/nsLocalFileUnix.cpp
[2] https://git.gnome.org/browse/glib/tree/gio/gdesktopappinfo.c