Browse Source

make Platform.exec async

Eugene Pankov 3 years ago
parent
commit
ef1366ef7f
2 changed files with 3 additions and 3 deletions
  1. 1 1
      tabby-core/src/api/platform.ts
  2. 2 2
      tabby-electron/src/services/platform.service.ts

+ 1 - 1
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<void> {
         throw new Error('Not implemented')
     }
 

+ 2 - 2
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<void> {
+        await execFile(app, argv)
     }
 
     isShellIntegrationSupported (): boolean {