make Platform.exec async

This commit is contained in:
Eugene Pankov 2022-09-27 23:07:26 +02:00
parent 4564b451c8
commit ef1366ef7f
No known key found for this signature in database
GPG Key ID: 5896FCBBDD1CF4F4
2 changed files with 3 additions and 3 deletions

View File

@ -145,7 +145,7 @@ export abstract class PlatformService {
throw new Error('Not implemented') throw new Error('Not implemented')
} }
exec (app: string, argv: string[]): void { async exec (app: string, argv: string[]): Promise<void> {
throw new Error('Not implemented') throw new Error('Not implemented')
} }

View File

@ -80,8 +80,8 @@ export class ElectronPlatformService extends PlatformService {
return null return null
} }
exec (app: string, argv: string[]): void { async exec (app: string, argv: string[]): Promise<void> {
execFile(app, argv) await execFile(app, argv)
} }
isShellIntegrationSupported (): boolean { isShellIntegrationSupported (): boolean {