Skip to content

Handle transient notifications (#541)#582

Open
grmat wants to merge 2 commits intoemersion:masterfrom
grmat:#541
Open

Handle transient notifications (#541)#582
grmat wants to merge 2 commits intoemersion:masterfrom
grmat:#541

Conversation

@grmat
Copy link

@grmat grmat commented Apr 21, 2025

Draft implementation for #541, implements handling of the "transient" hint according to the Desktop Notifications Specification.

The -e/--transient flag of notify-send (libnotify) allows a simple test:

notify-send -ea mailer -i email "from <test@example.org>" "Subject"

While users are still able to explicitly put notifications in the history when calling makoctl dismiss (without --no-history) or using the according binding (MAKO_BINDING_DISMISS instead of MAKO_BINDING_DISMISS_NO_HISTORY).


Second commit is some kind of a clean-up, as it doesn't make much sense, IMHO to maintain both, a transient member and a (no-)history parameter.

@emersion
Copy link
Owner

Hm, the way I've read the spec, the "transient" bit meant that the notification is not stored on disk (and restored), but history sounded unrelated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants