From cec0b193bcfdbced65afb7b71bf481c0a8077a37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pedro=20Guti=C3=A9rrez?= Date: Sun, 14 Apr 2024 03:00:05 +0200 Subject: [PATCH] Hide executable window --- src/ts/WinKeyServer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ts/WinKeyServer.ts b/src/ts/WinKeyServer.ts index cc1f17e..e3fad6a 100644 --- a/src/ts/WinKeyServer.ts +++ b/src/ts/WinKeyServer.ts @@ -28,7 +28,7 @@ export class WinKeyServer implements IGlobalKeyServer { /** Start the Key server and listen for keypresses */ public async start() { const serverPath = this.config.serverPath || Path.join(__dirname, sPath); - this.proc = execFile(serverPath, { maxBuffer: Infinity }); + this.proc = execFile(serverPath, { maxBuffer: Infinity, windowsHide: true }); if (this.config.onInfo) this.proc.stderr?.on("data", data => this.config.onInfo?.(data.toString())); if (this.config.onError) this.proc.on("close", this.config.onError);