How to write notification displaying application?
piotrhusiatynski at gmail.com
Fri Apr 12 03:14:07 PDT 2013
Now it does work, but only if there's another application that is handling
I checked documentation for this:
"Eavesdropping" occurs when an application receives a message that was
explicitly addressed to a name the application does not own, or is a reply
to such a message."
This make sense, because it appears that my code is listening to messages
and gives me those that are matching the filter, but none of those messages
are for my app directry. That's why there's nothing comming if there's no
other application listening to notifications.
Where can I learn how to register my application so that all notifications
will be send directly to it?
2013/4/12 Krzysztof Konopko <krzysztof.konopko at gmail.com>
> 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
> dbus mailing list
> dbus at lists.freedesktop.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the dbus