Desktop: Fixes #3260: Fixed image loading issue in WYSIWYG on portable app

pull/3262/head
Laurent Cozic 2020-05-23 23:30:18 +01:00
parent c99bd27e4d
commit 2c115cd074
1 changed files with 2 additions and 2 deletions

View File

@ -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');
}