-
Notifications
You must be signed in to change notification settings - Fork 73
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
Actions not working #4
Comments
Hi, thanks for the feedback. Would you care to elaborate? Thanks |
Distro: Arch Linux Neither of the examples works as intended. I'm no dbus expert but I don't see any messages using dbus-monitor when the notification closes or is being clicked. |
Ok, this is nice to know, I was only able to test it against the 4 desktops I listed above and there it worked. |
Sure, I was going to find some app that uses actions to see if it actions Hendrik Sollich notifications@github.com schrieb am So., 2. Aug. 2015
|
So, I looked a bit (very briefly) into (one of the) specification(s) of desktop notifications. This is the one the kde people refer to. It states that However, looking into d-feet, it appears as though mate-notification-daemon does not emit that signal. |
I feel like I should take dive into the (mate-)?notification-daemon source to see what's actually going on or what's expected from an "action client" |
WTF @ Ubuntu 15.04: |
Sorry, what do you mean? |
I mean that I should take a look at the source of the gnome |
Well, I only tested gnome3, but the signals |
Here's a log from dbus-monitor while running the
Also, looking at the source of notification-daemon everything should be emitted as expected. See on_notification_action_invoked and on_notification_close. EDIT: import gtk
import pynotify
class Demo:
def __init__(self):
pynotify.init("demo")
n = pynotify.Notification("Summary", "details")
n.add_action("foo", "Foo!", self.fooAction)
n.show()
gtk.main()
def fooAction(self,notifyObj, action):
print("Foo action!")
notifyObj.close()
gtk.main_quit()
if __name__ == "__main__":
obj = Demo() EDIT 2: |
|
|
👍 |
I actually got it to work! Pull request will follow soon ;). |
Waiting for actions using
show_and_wait_for_action
results in blocking forever (the handler never gets called).The text was updated successfully, but these errors were encountered: