Don't die if /Users/Shared doesn't exist on OS X

This commit is contained in:
Dan Stillman 2010-08-24 21:05:38 +00:00
parent 10e5766d8f
commit f10da8c527

View file

@ -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");