Fix startup error due to incorrect integration pipe permissions

This commit is contained in:
Dan Stillman 2010-05-10 21:13:52 +00:00
parent c83d64ad0d
commit e7ba86216e

View file

@ -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"].