elementary / wingpanel-indicator-notifications

Wingpanel Notifications Indicator
GNU Lesser General Public License v2.1
24 stars 10 forks source link

Support Buttons 2 #258

Closed leolost2605 closed 1 year ago

leolost2605 commented 1 year ago

~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 on org.freedesktop.Notifications.

leolost2605 commented 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 :)

leolost2605 commented 1 year ago

Closing in favor of an alternative implementation