diff --git a/chrome/content/zotero/xpcom/ipc.js b/chrome/content/zotero/xpcom/ipc.js index 0912e423cc..699ac3f6dc 100755 --- a/chrome/content/zotero/xpcom/ipc.js +++ b/chrome/content/zotero/xpcom/ipc.js @@ -93,6 +93,11 @@ Zotero.IPC = new function() { // translators Zotero.initComplete(); } + else if (msg == "reinit") { + if (Zotero.isConnector) { + reinit(false, true); + } + } } } diff --git a/chrome/content/zotero/xpcom/zotero.js b/chrome/content/zotero/xpcom/zotero.js index 4a8eb226f1..15da2fe67a 100644 --- a/chrome/content/zotero/xpcom/zotero.js +++ b/chrome/content/zotero/xpcom/zotero.js @@ -1495,6 +1495,10 @@ Components.utils.import("resource://gre/modules/osfile.jsm"); // Set data directory again Zotero.debug("Using new data directory " + newDir); this._cacheDataDirectory(newDir); + // Tell Zotero for Firefox in connector mode to reload and find the new data directory + if (this.isStandalone) { + Zotero.IPC.broadcast('reinit'); + } // At least the database was copied, but other things failed if (errors.length) {