I want to open pdf files with program A unless it is stored in Zotero, in which case I want to open it program B.
- Change the OS settings, so the default program for opening pdf files is the shell script shown below.
- Set Zotero preferences to store files in "zotero-data".
Below, I use playonlinux to launch Foxit Reader for my Zotero pdf files because Foxit has nice highlighting and annotation features that I like to use on scientific articles. I use [evince][4] for all other pdf files (figures, books, documents, etc.)