Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Buttons 2 #258

Closed
wants to merge 5 commits into from
Closed

Support Buttons 2 #258

wants to merge 5 commits into from

Conversation

leolost2605
Copy link
Member

@leolost2605 leolost2605 commented Jun 10, 2023

  • Support buttons

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
Copy link
Member Author

leolost2605 commented Jun 10, 2023

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 leolost2605 marked this pull request as ready for review June 10, 2023 13:41
@leolost2605 leolost2605 requested a review from a team June 10, 2023 13:41
@leolost2605 leolost2605 changed the title Support buttons Support Buttons 2 Jun 10, 2023
@leolost2605
Copy link
Member Author

Closing in favor of an alternative implementation

@lenemter lenemter deleted the support-buttons branch December 30, 2023 08:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

1 participant