From d340b3c85b8577e921c3034d8701dd30362026b6 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Sat, 24 Feb 2018 05:08:54 -0500 Subject: [PATCH] Fx60 compatibility: nsILocalFile -> nsIFile --- chrome/content/zotero/xpcom/integration.js | 4 +--- chrome/content/zotero/xpcom/ipc.js | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/chrome/content/zotero/xpcom/integration.js b/chrome/content/zotero/xpcom/integration.js index 6e7b64c08..845538683 100644 --- a/chrome/content/zotero/xpcom/integration.js +++ b/chrome/content/zotero/xpcom/integration.js @@ -77,9 +77,7 @@ Zotero.Integration = new function() { // on OS X, first try /Users/Shared for those who can't put pipes in their home // directories var pipe = null; - var sharedDir = Components.classes["@mozilla.org/file/local;1"]. - createInstance(Components.interfaces.nsILocalFile); - sharedDir.initWithPath("/Users/Shared"); + var sharedDir = Zotero.File.pathToFile('/Users/Shared'); if(sharedDir.exists() && sharedDir.isDirectory()) { var logname = Components.classes["@mozilla.org/process/environment;1"]. diff --git a/chrome/content/zotero/xpcom/ipc.js b/chrome/content/zotero/xpcom/ipc.js index 38c6e9d5c..94fcf234d 100755 --- a/chrome/content/zotero/xpcom/ipc.js +++ b/chrome/content/zotero/xpcom/ipc.js @@ -229,7 +229,7 @@ Zotero.IPC = new function() { if(pipeDir.exists()) { var dirEntries = pipeDir.directoryEntries; while (dirEntries.hasMoreElements()) { - var pipe = dirEntries.getNext().QueryInterface(Ci.nsILocalFile); + var pipe = dirEntries.getNext().QueryInterface(Ci.nsIFile); if(pipe.leafName[0] !== "." && (!_instancePipe || !pipe.equals(_instancePipe))) { pipes.push(pipe); }