From e7ba86216e443c8486145cc08e6da69c061506e9 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Mon, 10 May 2010 21:13:52 +0000 Subject: [PATCH] Fix startup error due to incorrect integration pipe permissions --- chrome/content/zotero/xpcom/integration.js | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/integration.js b/chrome/content/zotero/xpcom/integration.js index 13bc34249..3fd092589 100644 --- a/chrome/content/zotero/xpcom/integration.js +++ b/chrome/content/zotero/xpcom/integration.js @@ -67,7 +67,20 @@ Zotero.Integration = new function() { Zotero.debug("Initializing Zotero integration pipe at "+_fifoFile.path); // destroy old pipe, if one exists - if(_fifoFile.exists()) _fifoFile.remove(false); + try { + if(_fifoFile.exists()) { + _fifoFile.remove(false); + } + } + catch (e) { + Zotero.debug("Could not remove old integration pipe", 1); + Components.utils.reportError( + "Zotero word processor integration initialization failed. " + + "See http://forums.zotero.org/discussion/12054/#Item_10 " + + "for instructions on correcting this problem." + ); + return; + } // make a new pipe var mkfifo = Components.classes["@mozilla.org/file/local;1"].