fix(desktop): await execFilePromise and read stdout properly (#27499)
This commit is contained in:
parent
7e43d3e3f5
commit
f8c3f560d4
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue