diff --git a/tabby-core/src/api/platform.ts b/tabby-core/src/api/platform.ts index 79362cb0..73b081ba 100644 --- a/tabby-core/src/api/platform.ts +++ b/tabby-core/src/api/platform.ts @@ -145,7 +145,7 @@ export abstract class PlatformService { throw new Error('Not implemented') } - exec (app: string, argv: string[]): void { + async exec (app: string, argv: string[]): Promise { throw new Error('Not implemented') } diff --git a/tabby-electron/src/services/platform.service.ts b/tabby-electron/src/services/platform.service.ts index 806a15dd..7f655fb1 100644 --- a/tabby-electron/src/services/platform.service.ts +++ b/tabby-electron/src/services/platform.service.ts @@ -80,8 +80,8 @@ export class ElectronPlatformService extends PlatformService { return null } - exec (app: string, argv: string[]): void { - execFile(app, argv) + async exec (app: string, argv: string[]): Promise { + await execFile(app, argv) } isShellIntegrationSupported (): boolean {