www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit aedd36156946970abe0b1638aafe70e8a20d185f
parent e72da417c0d71185c4b4505227ec99f122909445
Author: Dan Stillman <dstillman@zotero.org>
Date:   Sun, 11 Feb 2018 18:55:53 -0500

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()`.

Diffstat:
Mchrome/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 @@ -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');