diff --git a/desktop/app.js b/desktop/app.js index 48dbdb15..c13c722b 100644 --- a/desktop/app.js +++ b/desktop/app.js @@ -18,7 +18,9 @@ if (!gotTheLock) { } let openFile = process.argv.filter(arg => /\.kdbx$/i.test(arg))[0]; -const userDataDir = app.getPath('userData').replace(/[\\/]temp[\\/]\d+\.\d+[\\/]?$/, ''); +const userDataDir = + process.env.PORTABLE_EXECUTABLE_DIR || + app.getPath('userData').replace(/[\\/]temp[\\/]\d+\.\d+[\\/]?$/, ''); const windowPositionFileName = path.join(userDataDir, 'window-position.json'); const appSettingsFileName = path.join(userDataDir, 'app-settings.json'); const tempUserDataPath = path.join(userDataDir, 'temp'); diff --git a/release-notes.md b/release-notes.md index 81890c12..e85b61b9 100644 --- a/release-notes.md +++ b/release-notes.md @@ -2,6 +2,7 @@ Release notes ------------- ##### v1.13.0 (TBD) `+` #1341: auto-lock the app on screen lock on Windows +`+` #1065: PORTABLE_EXECUTABLE_DIR environment variable `-` fix #1323: version in the About dialog `-` fix #734: OTP secrets with spaces