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()`.
This commit is contained in:
Dan Stillman 2018-02-11 18:55:53 -05:00
parent e72da417c0
commit aedd361569

View file

@ -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');