commit d4c201fbc0913c7e5d22812dfe1389aa4e3c6def
parent d4097d90f6e47d79927cd023db1b015dbba779b3
Author: Dan Stillman <dstillman@zotero.org>
Date: Tue, 12 Jun 2018 07:04:32 -0400
Correct Mendeley data dir path on Windows
Diffstat:
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/chrome/content/zotero/fileInterface.js b/chrome/content/zotero/fileInterface.js
@@ -218,7 +218,7 @@ var Zotero_File_Interface = new function() {
path = OS.Path.join(path, 'Library', 'Application Support', 'Mendeley Desktop');
}
else if (Zotero.isWin) {
- path = OS.Path.join(path, 'AppData', 'Local', 'Mendeley Ltd', 'Desktop');
+ path = OS.Path.join(path, 'AppData', 'Local', 'Mendeley Ltd', 'Mendeley Desktop');
}
else if (Zotero.isLinux) {
path = OS.Path.join(path, '.local', 'share', 'data', 'Mendeley Ltd.', 'Mendeley Desktop');
diff --git a/chrome/content/zotero/import/mendeley/mendeleyImport.js b/chrome/content/zotero/import/mendeley/mendeleyImport.js
@@ -1042,7 +1042,7 @@ Zotero_Import_Mendeley.prototype._findExistingFile = function (parentItemID, fil
Zotero_Import_Mendeley.prototype._isDownloadedFile = function (path) {
var parentDir = OS.Path.dirname(path);
return parentDir.endsWith(OS.Path.join('Application Support', 'Mendeley Desktop', 'Downloaded'))
- || parentDir.endsWith(OS.Path.join('Local', 'Mendeley Ltd', 'Desktop', 'Downloaded'))
+ || parentDir.endsWith(OS.Path.join('Local', 'Mendeley Ltd', 'Mendeley Desktop', 'Downloaded'))
|| parentDir.endsWith(OS.Path.join('data', 'Mendeley Ltd.', 'Mendeley Desktop', 'Downloaded'));
}