Преглед изворни кода

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

Brendan Allan пре 3 месеци
родитељ
комит
f8c3f560d4
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      packages/desktop/src/main/apps.ts

+ 1 - 1
packages/desktop/src/main/apps.ts

@@ -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
   }