From aedd36156946970abe0b1638aafe70e8a20d185f Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Sun, 11 Feb 2018 18:55:53 -0500 Subject: [PATCH] Fix startup error in new PDF code if application directory is read-only In Firefox 52, `FileUtils.getFile()` tries to create the path to the file even if the path array is empty. (In later versions (maybe in 54, which we're using on macOS) it only does this if more than one path component is provided.) We only need the special directory anyway, so we can just use `getDir()`. --- chrome/content/zotero/xpcom/fulltext.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/fulltext.js b/chrome/content/zotero/xpcom/fulltext.js index 27f99c494..ce3df3572 100644 --- a/chrome/content/zotero/xpcom/fulltext.js +++ b/chrome/content/zotero/xpcom/fulltext.js @@ -78,7 +78,7 @@ Zotero.Fulltext = Zotero.FullText = new function(){ pdfInfoFileName += '.exe'; } - let dir = FileUtils.getFile('AChrom', []).parent; + let dir = FileUtils.getDir('AChrom', []).parent; _pdfData = dir.clone(); _pdfData.append('poppler-data');