From f8c3f560d42d1764adb7159e86e2061fd3adb0b8 Mon Sep 17 00:00:00 2001 From: Brendan Allan <14191578+Brendonovich@users.noreply.github.com> Date: Thu, 14 May 2026 17:52:23 +0800 Subject: [PATCH] fix(desktop): await execFilePromise and read stdout properly (#27499) --- packages/desktop/src/main/apps.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/desktop/src/main/apps.ts b/packages/desktop/src/main/apps.ts index bf25417b83..f9c0a603e6 100644 --- a/packages/desktop/src/main/apps.ts +++ b/packages/desktop/src/main/apps.ts @@ -58,7 +58,7 @@ async function checkMacosApp(appName: string) { async function resolveWindowsAppPath(appName: string): Promise { let output: string try { - output = execFilePromise("where", [appName]).toString() + output = await execFilePromise("where", [appName]).then((r) => r.stdout.toString()) } catch { return null }