How to write notification displaying application?
krzysztof.konopko at gmail.com
Fri Apr 12 01:08:34 PDT 2013
In your MATCH string you're missing eavesdrop='true':
MATCH = "type='method_call',interface='org.freedesktop.
I tried it on my laptop and now it's OK.
This is required since 1.6.x series I think so might not be googlable yet.
2013/4/12 Piotr Husiatyński <piotrhusiatynski at gmail.com>
> I'm trying to write an application that will display all notifications. I
> want to register new service for the org.freedesktop.Notifications.
> I searched for working examples, but I got stuck with nothing. So far, I'm
> trying to have a working example using python 2.7. I'm sending messages
> using notify-send and except of my broken script, all notification daemons
> are working (receiving messages).
> I will appreciate any help on that.
> Here's what I'm doing:
> import gtk
> import dbus
> from dbus.mainloop.glib import DBusGMainLoop
> MATCH =
> def message_filter(connection, message):
> def main():
> bus = dbus.SessionBus()
> if __name__ == "__main__":
> dbus mailing list
> dbus at lists.freedesktop.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the dbus