fix(desktop): await execFilePromise and read stdout properly (#27499)
This commit is contained in:
@@ -58,7 +58,7 @@ async function checkMacosApp(appName: string) {
|
|||||||
async function resolveWindowsAppPath(appName: string): Promise<string | null> {
|
async function resolveWindowsAppPath(appName: string): Promise<string | null> {
|
||||||
let output: string
|
let output: string
|
||||||
try {
|
try {
|
||||||
output = execFilePromise("where", [appName]).toString()
|
output = await execFilePromise("where", [appName]).then((r) => r.stdout.toString())
|
||||||
} catch {
|
} catch {
|
||||||
return null
|
return null
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user