diff options
author | Aylur <[email protected]> | 2024-07-31 16:25:04 +0200 |
---|---|---|
committer | Aylur <[email protected]> | 2024-07-31 16:25:04 +0200 |
commit | a0680e3b88c767da23186648024a5b05c4a2f013 (patch) | |
tree | 5dde966f23ecba2a438b633fba62f4e112c7763f /gjs/src | |
parent | f86a908952c5ae34a0e2ac832ffe43cb4d0ae0cc (diff) |
feat: optiona exit code on App.quit
Diffstat (limited to 'gjs/src')
-rw-r--r-- | gjs/src/application.ts | 5 |
1 files changed, 5 insertions, 0 deletions
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`) |