diff --git a/src/common/config/defaultPreferences.ts b/src/common/config/defaultPreferences.ts index 2c84ca7a..2a4c2269 100644 --- a/src/common/config/defaultPreferences.ts +++ b/src/common/config/defaultPreferences.ts @@ -19,6 +19,11 @@ export const getDefaultDownloadLocation = (): string | undefined => { if (__IS_MAC_APP_STORE__) { return undefined; } + + if (process.platform === 'linux' && process.env.XDG_DOWNLOAD_DIR) { + return process.env.XDG_DOWNLOAD_DIR; + } + return path.join(os.homedir(), 'Downloads'); };