mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-22 01:40:17 -05:00
notify: close notification by sending SIGINT to helper
If the user hasn't configured a custom 'desktop-notifications.close' command, try to close the notification by sending SIGINT to the notification helper. This is best-effort: * If there's no helper running, we do nothing (except warn) * We don't verify, in any way, the notification is actually closed * We don't send any other signals, under any circumstances. That is, no SIGTERM, no SIGKILL. Ever.
This commit is contained in:
parent
8f16fe54d3
commit
9cf99ea4bf
4 changed files with 66 additions and 30 deletions
1
osc.c
1
osc.c
|
|
@ -759,6 +759,7 @@ kitty_notification(struct terminal *term, char *string)
|
|||
.when = when,
|
||||
.urgency = urgency,
|
||||
.focus = focus,
|
||||
.may_be_programatically_closed = true,
|
||||
.report_activated = report_activated,
|
||||
.report_closed = report_closed,
|
||||
.stdout_fd = -1,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue