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:
parent
e72da417c0
commit
aedd361569
1 changed files with 1 additions and 1 deletions
|
@ -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');
|
||||
|
|
Loading…
Reference in a new issue