Don't die if /Users/Shared doesn't exist on OS X
This commit is contained in:
parent
10e5766d8f
commit
f10da8c527
1 changed files with 1 additions and 1 deletions
|
@ -48,7 +48,7 @@ Zotero.Integration = new function() {
|
|||
createInstance(Components.interfaces.nsILocalFile);
|
||||
_fifoFile.initWithPath("/Users/Shared");
|
||||
|
||||
if(_fifoFile.isDirectory() && _fifoFile.isWritable()) {
|
||||
if(_fifoFile.exists() && _fifoFile.isDirectory() && _fifoFile.isWritable()) {
|
||||
var logname = Components.classes["@mozilla.org/process/environment;1"].
|
||||
getService(Components.interfaces.nsIEnvironment).
|
||||
get("LOGNAME");
|
||||
|
|
Loading…
Reference in a new issue