From a0680e3b88c767da23186648024a5b05c4a2f013 Mon Sep 17 00:00:00 2001 From: Aylur Date: Wed, 31 Jul 2024 16:25:04 +0200 Subject: feat: optiona exit code on App.quit --- gjs/src/application.ts | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'gjs/src') diff --git a/gjs/src/application.ts b/gjs/src/application.ts index 835b319..0c14278 100644 --- a/gjs/src/application.ts +++ b/gjs/src/application.ts @@ -59,6 +59,11 @@ class AstalJS extends Astal.Application { super.apply_css(style, reset) } + quit(code?: number): void { + super.quit() + exit(code ?? 0) + } + start({ requestHandler, css, hold, main, client, ...cfg }: Config = {}) { client ??= () => { print(`Astal instance "${this.instanceName}" already running`) -- cgit v1.2.3