From 2c115cd07499e7c1c065d73582ccad7a506c30fe Mon Sep 17 00:00:00 2001 From: Laurent Cozic Date: Sat, 23 May 2020 23:30:18 +0100 Subject: [PATCH] Desktop: Fixes #3260: Fixed image loading issue in WYSIWYG on portable app --- ReactNativeClient/lib/BaseApplication.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ReactNativeClient/lib/BaseApplication.js b/ReactNativeClient/lib/BaseApplication.js index 31b93767b3..c53b25cbe7 100644 --- a/ReactNativeClient/lib/BaseApplication.js +++ b/ReactNativeClient/lib/BaseApplication.js @@ -582,9 +582,9 @@ class BaseApplication { } determineProfileDir(initArgs) { - if (initArgs.profileDir) return initArgs.profileDir; + if (initArgs.profileDir) return toSystemSlashes(initArgs.profileDir); - if (process && process.env && process.env.PORTABLE_EXECUTABLE_DIR) return `${process.env.PORTABLE_EXECUTABLE_DIR}/JoplinProfile`; + if (process && process.env && process.env.PORTABLE_EXECUTABLE_DIR) return toSystemSlashes(`${process.env.PORTABLE_EXECUTABLE_DIR}/JoplinProfile`); return toSystemSlashes(`${os.homedir()}/.config/${Setting.value('appName')}`, 'linux'); }