Fix startup error due to incorrect integration pipe permissions
This commit is contained in:
parent
c83d64ad0d
commit
e7ba86216e
1 changed files with 14 additions and 1 deletions
|
@ -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"].
|
||||
|
|
Loading…
Add table
Reference in a new issue