From c47da0de294896c95b92587e3e239cf16499e0bf Mon Sep 17 00:00:00 2001 From: Devin Binnie <52460000+devinbinnie@users.noreply.github.com> Date: Tue, 19 Apr 2022 20:16:58 -0400 Subject: [PATCH] Fix download folder for MAS (#2063) --- src/common/config/defaultPreferences.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/common/config/defaultPreferences.ts b/src/common/config/defaultPreferences.ts index d38ef279..c6cd2ba1 100644 --- a/src/common/config/defaultPreferences.ts +++ b/src/common/config/defaultPreferences.ts @@ -13,7 +13,11 @@ import os from 'os'; import {ConfigV3} from 'types/config'; export const getDefaultDownloadLocation = (): string => { - return path.join(os.homedir(), 'Downloads'); + // eslint-disable-next-line no-undef + // eslint-disable-next-line @typescript-eslint/ban-ts-comment + // @ts-ignore + const homePath = __IS_MAC_APP_STORE__ ? path.join(os.homedir(), '../../../../') : os.homedir(); + return path.join(homePath, 'Downloads'); }; const defaultPreferences: ConfigV3 = {