Custom Command for PDF-Viewer on Linux
I would like to open PDFs from Zotero in a qpdfview-session. For this to actually work i would have to launch the following command:
qpdfview --unique --instance INSTANCENAME FILENAME.pdf
Unfortunately when choosing the PDF-viewer through the settings-dialog i can only choose executables and not edit the specific command. I tried to manually edit prefs.js and replaced the field extensions.zotero.fileHandler.pdf (which previously was "/usr/bin/qpdfview") with "/usr/bin/qpdfview --unique --instace a". Now when i restart Zotero and take a look at the settings, the command for the PDF-viewer is displayed as i entered it in prefs.js, however when i now double-click on a PDF to open it it's opened in the browser.
When i start Zotero from the terminal and look at the output when opening a PDF i just see:
Opening in existing browser session.
[0921/115538.745057:ERROR:nacl_helper_linux.cc(308)] NaCl helper process running without a sandbox!
Most likely you need to configure your SUID sandbox correctly
Which is more likely to be a Google-Chrome related output.
Can i achieve my goal somehow? How could i do that?
qpdfview --unique --instance INSTANCENAME FILENAME.pdf
Unfortunately when choosing the PDF-viewer through the settings-dialog i can only choose executables and not edit the specific command. I tried to manually edit prefs.js and replaced the field extensions.zotero.fileHandler.pdf (which previously was "/usr/bin/qpdfview") with "/usr/bin/qpdfview --unique --instace a". Now when i restart Zotero and take a look at the settings, the command for the PDF-viewer is displayed as i entered it in prefs.js, however when i now double-click on a PDF to open it it's opened in the browser.
When i start Zotero from the terminal and look at the output when opening a PDF i just see:
Opening in existing browser session.
[0921/115538.745057:ERROR:nacl_helper_linux.cc(308)] NaCl helper process running without a sandbox!
Most likely you need to configure your SUID sandbox correctly
Which is more likely to be a Google-Chrome related output.
Can i achieve my goal somehow? How could i do that?
I haven't tested, but you can probably use a shell script for this.
#!/usr/bin/env bash
/usr/bin/qpdfview --unique --instance zotero "$1"
Thanks!