Closed leolost2605 closed 1 year ago
I've implemented the mentioned solution at elementary/notifications#192 and can confirm it is working now. However I'm not sure whether there might be a better way?
For testing I monitored the notifications DBus using dbus-monitor "interface='org.freedesktop.Notifications'"
and then sent notifications with buttons via the NotifyBackground
method on the background portal implementation because I couldn't find an easier way to send these notifications :)
Closing in favor of an alternative implementation
~Currently doesn't work~ because it seems emitting signals on a foreign DBus Object (is this correct terminology?) isn't possible (which would make sense). However it was used here before (for the default action) so maybe I missed something? A possible solution would maybe be to implement a DBus method in elementary/notifications that then emits the
ActionInvoked
signal onorg.freedesktop.Notifications
.