1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-06-15 23:00:36 +02:00

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

This reverts commit 2c115cd074.

Reason: Fixed is not right and needs further testing on portable release
This commit is contained in:
Laurent Cozic
2020-05-24 15:05:38 +01:00
parent d9ec2efa4b
commit 068dbfffd8

View File

@ -582,9 +582,9 @@ class BaseApplication {
}
determineProfileDir(initArgs) {
if (initArgs.profileDir) return toSystemSlashes(initArgs.profileDir);
if (initArgs.profileDir) return initArgs.profileDir;
if (process && process.env && process.env.PORTABLE_EXECUTABLE_DIR) return toSystemSlashes(`${process.env.PORTABLE_EXECUTABLE_DIR}/JoplinProfile`);
if (process && process.env && process.env.PORTABLE_EXECUTABLE_DIR) return `${process.env.PORTABLE_EXECUTABLE_DIR}/JoplinProfile`;
return toSystemSlashes(`${os.homedir()}/.config/${Setting.value('appName')}`, 'linux');
}