dunst-project / dunst

Lightweight and customizable notification daemon
https://dunst-project.org
Other
4.42k stars 338 forks source link

All notifications get closed together #1355

Closed lordofscripts closed 1 month ago

lordofscripts commented 1 month ago

I am using esiqveland/notify for notifications. I am on a Raspberry π which has the dunst notification daemon.

The daemon is configured as default:

In my app I setup 3 notifications with Low, Normal & Critical urgency and then fire them one by one in succession.

But:

The global config has these mouse settings:

mouse_left_click= close_current mouse_middle_click= do_action,close_current mouse_right_click= close_all

bynect commented 1 month ago

Please include a log from

dunst -verbosity debug

lordofscripts commented 1 month ago

I was thinking about it during my sleep and woke up with a hypothesis.

In my code I open a SINGLE session and with it I fire all 3 notifications. When I click on ONE then ALL get closed.

My hypothesis is that perhaps for every notification I must do an Open/Closein other words, connect, compose & send ONE, wait for actions/closing, and then terminate the connection. That as opposed to using the same connection to send multiple.

I am refactoring to verify my hypothesis.

lordofscripts commented 1 month ago

My nightly enlightenment was correct, for every notification one must do open/close. Otherwise they get bundled as a group and close as a group.