From 2f275a187c946f452b3286fb1b786651c5f8f53c Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Thu, 29 Aug 2013 11:46:30 -0400 Subject: [PATCH] Fix path for translators/styles directories in symlinked dev Standalone build --- chrome/content/zotero/xpcom/schema.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/chrome/content/zotero/xpcom/schema.js b/chrome/content/zotero/xpcom/schema.js index baff2c029..41ab25235 100644 --- a/chrome/content/zotero/xpcom/schema.js +++ b/chrome/content/zotero/xpcom/schema.js @@ -512,10 +512,11 @@ Zotero.Schema = new function(){ xpiZipReader.open(installLocation); if(Zotero.isStandalone && !xpiZipReader.hasEntry("translators.index")) { - // Symlinked Standalone build - var installLocation2 = installLocation.parent; - installLocation2.append("translators"); - if(installLocation2.exists()) { + // Symlinked dev Standalone build + var installLocation2 = installLocation.parent, + translatorsDir = installLocation2.clone(); + translatorsDir.append("translators"); + if(translatorsDir.exists()) { installLocation = installLocation2; isUnpacked = true; xpiZipReader.close();