We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e15fff commit 46125fbCopy full SHA for 46125fb
src/main/userDataFolder.js
@@ -7,7 +7,9 @@ import {
7
} from '../constants'
8
9
const DEFAULT_USER_DATA_PATH = app.getPath('userData')
10
-const APP_FOLDER_PATH = path.dirname(process.execPath)
+// For portable version (single executable) the config should be stored next to that executable file
11
+// Otherwise use the folder of many files (with `FreeTube.exe` in it)
12
+const APP_FOLDER_PATH = process.env.PORTABLE_EXECUTABLE_DIR ?? path.dirname(process.execPath)
13
const APP_FOLDER_USER_DATA_PATH = path.join(APP_FOLDER_PATH, 'userData')
14
const USER_DATA_IN_APP_FOLDER_SWITCH_FILE_PATH = path.join(APP_FOLDER_PATH, STORE_USER_DATA_IN_APP_FOLDER_SWITCH_FILENAME)
15
const TO_BE_MIGRATED_FILES = [
0 commit comments