The swiss army knife of lossless video/audio editing
try to fix portable app config issue #645
Mikael Finstad9ac1b1a08653
diff --git a/public/configStore.js b/public/configStore.jsindex 2006ac35..c6bce482 100644--- a/public/configStore.js+++ b/public/configStore.js@@ -47,7 +47,9 @@ async function getCustomStoragePath() {const isWindows = os.platform() === 'win32';if (!isWindows || process.windowsStore) return undefined;- const customStoragePath = app.getAppPath();+ // https://github.com/mifi/lossless-cut/issues/645#issuecomment-1001363314+ // https://stackoverflow.com/questions/46307797/how-to-get-the-original-path-of-a-portable-electron-app+ const customStoragePath = process.env.PORTABLE_EXECUTABLE_DIR || app.getAppPath();const customConfigPath = join(customStoragePath, 'config.json');if (await pathExists(customConfigPath)) return customStoragePath;return undefined;