dunst icon indicating copy to clipboard operation
dunst copied to clipboard

Idea: Don't close actions immediately upon a notification timing out

Open fwsmit opened this issue 3 years ago • 4 comments

When a notification with an action is closed, it becomes impossible to activate the action.

Dunst could keep the action valid for a minute or so after a notification is closed. This way you could retrieve a notification from history and still activate the action.

fwsmit avatar Apr 12 '22 17:04 fwsmit

my only concern is that to implement this we would need to leave all the programs awaiting actions hanging for the time being (1minute). maybe we can make an action_timeout that by default is 0 and can be customized by a rule?

bynect avatar Apr 26 '24 20:04 bynect

I'm not sure if a timeout would be a good idea. For programs that hang while waiting for an action, it would also be bad to hang for 10 seconds. It would also be a bad user experience if actions would only stay active for a certain amount of time. You want them to always stay available. I would say that it's better to give the option not timeout the action at all for programs that can handle it.

fwsmit avatar Apr 27 '24 14:04 fwsmit

But I don't know how other programs implement their action code. It would be useful to know how many programs can handle waiting for an action indefinitely without problems

fwsmit avatar Apr 27 '24 15:04 fwsmit

But I don't know how other programs implement their action code. It would be useful to know how many programs can handle waiting for an action indefinitely without problems

This is unfortunately a gray area of the notification protocol. That's why a timeout option that could be tailored to the specific programs could be used. But I am not sure

bynect avatar Apr 27 '24 16:04 bynect