From 86941ba9fcb2a2c3c7ec137db10d3dca040d709f Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Sat, 25 Sep 2010 16:09:55 +0000 Subject: [PATCH] don't use appendRelativePath to fix Windows issues --- chrome/content/zotero/xpcom/zotero.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/chrome/content/zotero/xpcom/zotero.js b/chrome/content/zotero/xpcom/zotero.js index eb6b1bf4a7..d4d634a0ac 100644 --- a/chrome/content/zotero/xpcom/zotero.js +++ b/chrome/content/zotero/xpcom/zotero.js @@ -576,9 +576,11 @@ var Zotero = new function(){ // parse out ini to reveal profile if(!defaultSection || !defaultSection.Path) return false; + + if(defaultSection.IsRelative) { var defaultProfile = prefDir.clone(); - defaultProfile.QueryInterface(Components.interfaces.nsILocalFile).appendRelativePath(defaultSection.Path); + [defaultProfile.append(dir) for each(dir in defaultSection.Path.split("/"))]; } else { var defaultProfile = Components.classes["@mozilla.org/file/local;1"] .createInstance(Components.interfaces.nsILocalFile); @@ -2732,4 +2734,4 @@ Zotero.JSON = new function() { this.unserialize = function(arg) { return nativeJSON.decode(arg); } -} \ No newline at end of file +}