fix(desktop): await execFilePromise and read stdout properly (#27499)

This commit is contained in:
Brendan Allan
2026-05-14 17:52:23 +08:00
committed by GitHub
parent 7e43d3e3f5
commit f8c3f560d4

View File

@@ -58,7 +58,7 @@ async function checkMacosApp(appName: string) {
async function resolveWindowsAppPath(appName: string): Promise<string | null> {
let output: string
try {
output = execFilePromise("where", [appName]).toString()
output = await execFilePromise("where", [appName]).then((r) => r.stdout.toString())
} catch {
return null
}