fix(desktop): open apps with executables on Windows (#13022)

This commit is contained in:
Filip
2026-02-10 22:10:58 +01:00
committed by GitHub
parent 8c56571ef9
commit dce4c05fa9
4 changed files with 189 additions and 11 deletions

View File

@@ -98,7 +98,12 @@ const createPlatform = (password: Accessor<string | null>): Platform => ({
void shellOpen(url).catch(() => undefined)
},
openPath(path: string, app?: string) {
async openPath(path: string, app?: string) {
const os = ostype()
if (os === "windows" && app) {
const resolvedApp = await commands.resolveAppPath(app)
return openerOpenPath(path, resolvedApp || app)
}
return openerOpenPath(path, app)
},