Allow custom handler for PDF files
Configurable via extensions.zotero.fileHandler.pdf hidden pref for now, though we'll probably make it a visible pref. We also appear to have been doing blocking launches when launch() failed, which may have been causing UI hangs when opening files on some Linux installations. (I'm not sure if that's an issue with recent Firefox builds. launch() works on Ubuntu 17.10.) All launches are now async. This is a rewritten version of PR #1450 by @ehhc. Closes #1450
This commit is contained in:
parent
f6926ccda6
commit
da09a3bb96
3 changed files with 35 additions and 16 deletions
|
@ -184,6 +184,9 @@ pref("extensions.zotero.ingester.allowedSites", "");
|
|||
pref("extensions.zotero.connector.repo.lastCheck.localTime", 0);
|
||||
pref("extensions.zotero.connector.repo.lastCheck.repoTime", 0);
|
||||
|
||||
// Custom file handlers
|
||||
pref("extensions.zotero.fileHandler.pdf", "");
|
||||
|
||||
// File/URL opening executable if launch() fails
|
||||
pref("extensions.zotero.fallbackLauncher.unix", "/usr/bin/xdg-open");
|
||||
pref("extensions.zotero.fallbackLauncher.windows", "");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue