From ef1366ef7f4c9b51694ed9c7a79f3eb0fb5b7e8b Mon Sep 17 00:00:00 2001 From: Eugene Pankov Date: Tue, 27 Sep 2022 23:07:26 +0200 Subject: [PATCH] make Platform.exec async --- tabby-core/src/api/platform.ts | 2 +- tabby-electron/src/services/platform.service.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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 {