mirror of
https://github.com/zotero/zotero.git
synced 2026-09-24 00:51:37 +00:00
Fix zotero://open-pdf links with page for PDF Expert
https://forums.zotero.org/discussion/comment/365610/#Comment_365610
This commit is contained in:
parent
328865299b
commit
987b9ce4cb
1 changed files with 3 additions and 1 deletions
|
|
@ -23,6 +23,8 @@
|
|||
***** END LICENSE BLOCK *****
|
||||
*/
|
||||
|
||||
/* eslint-disable array-element-newline */
|
||||
|
||||
Zotero.OpenPDF = {
|
||||
openToPage: async function (path, page) {
|
||||
var handler = Zotero.Prefs.get("fileHandler.pdf");
|
||||
|
|
@ -193,7 +195,7 @@ Zotero.OpenPDF = {
|
|||
},
|
||||
|
||||
_openWithPDFExpert: async function (appPath, filePath, page) {
|
||||
await Zotero.Utilities.Internal.exec('/usr/bin/open', ['-a', handlers, filePath]);
|
||||
await Zotero.Utilities.Internal.exec('/usr/bin/open', ['-a', appPath, filePath]);
|
||||
// Go to page using AppleScript (same as Preview)
|
||||
let args = [
|
||||
'-e', `tell app "${appPath}" to activate`,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue