From 855c454018dbd830f3cc59e09f0db1c61e09a881 Mon Sep 17 00:00:00 2001 From: MrGarlic Date: Fri, 10 May 2024 15:48:15 -0400 Subject: [PATCH] change portable check string for windows --- src/main/constants.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/constants.ts b/src/main/constants.ts index 9eef817..426fb4b 100644 --- a/src/main/constants.ts +++ b/src/main/constants.ts @@ -13,7 +13,7 @@ const vesktopDir = dirname(process.execPath); export const PORTABLE = process.platform === "win32" && !readdirSync(vesktopDir).includes("Uninstall Vesktop.exe") && - !process.execPath.endsWith("electron"); + !process.execPath.endsWith("electron.exe"); const LEGACY_DATA_DIR = join(app.getPath("appData"), "VencordDesktop", "VencordDesktop"); export const DATA_DIR = PORTABLE