From a5bc68bc17a0cb994d03f3ce1ad966148ddd534f Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Wed, 28 Aug 2013 22:05:58 -0400 Subject: [PATCH] Fix updating translators and styles from unpacked build --- chrome/content/zotero/xpcom/schema.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/chrome/content/zotero/xpcom/schema.js b/chrome/content/zotero/xpcom/schema.js index 178d934d4d..baff2c0294 100644 --- a/chrome/content/zotero/xpcom/schema.js +++ b/chrome/content/zotero/xpcom/schema.js @@ -510,6 +510,17 @@ Zotero.Schema = new function(){ xpiZipReader = Components.classes["@mozilla.org/libjar/zip-reader;1"] .createInstance(Components.interfaces.nsIZipReader); xpiZipReader.open(installLocation); + + if(Zotero.isStandalone && !xpiZipReader.hasEntry("translators.index")) { + // Symlinked Standalone build + var installLocation2 = installLocation.parent; + installLocation2.append("translators"); + if(installLocation2.exists()) { + installLocation = installLocation2; + isUnpacked = true; + xpiZipReader.close(); + } + } } switch (mode) {