<div dir="ltr">Hi,<div><br></div><div style>In your MATCH string you're missing eavesdrop='true':</div><div style><span style="font-family:arial,sans-serif;font-size:13px">MATCH = "type='method_call',interface=</span><span style="font-family:arial,sans-serif;font-size:13px">'org.freedesktop.</span><span style="font-family:arial,sans-serif;font-size:13px">Notifications',member='Notify'</span><font face="arial, sans-serif">,eavesdrop='true'</font><span style="font-family:arial,sans-serif;font-size:13px">"</span></div>
<div style></div><div class="gmail_extra"><br></div><div class="gmail_extra" style>I tried it on my laptop and now it's OK.</div><div class="gmail_extra" style><br></div><div class="gmail_extra">This is required since 1.6.x series I think so might not be googlable yet.<br>
<br>Cheers,</div><div class="gmail_extra">Kris<br><br><div class="gmail_quote">2013/4/12 Piotr Husiatyński <span dir="ltr"><<a href="mailto:piotrhusiatynski@gmail.com" target="_blank">piotrhusiatynski@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<br>I'm trying to write an application that will display all notifications. I<br>want to register new service for the org.freedesktop.Notifications.<br>
I searched for working examples, but I got stuck with nothing. So far, I'm<br>
trying to have a working example using python 2.7. I'm sending messages<br>using notify-send and except of my broken script, all notification daemons<br>are working (receiving messages).<br>I will appreciate any help on that.<br>
<br>Here's what I'm doing:<br><br><br>import gtk<br>import dbus<br>from dbus.mainloop.glib import DBusGMainLoop<br><br>MATCH = "type='method_call',interface='org.freedesktop.Notifications',member='Notify'"<br>
<br>def message_filter(connection, message):<br> print(message)<br><br>def main():<br> DBusGMainLoop(set_as_default=True)<br> bus = dbus.SessionBus()<br> bus.add_match_string(MATCH)<br> bus.add_message_filter(message_filter)<br>
gtk.main()<br><br>if __name__ == "__main__":<br> main()<br></div>
<br>_______________________________________________<br>
dbus mailing list<br>
<a href="mailto:dbus@lists.freedesktop.org">dbus@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/dbus" target="_blank">http://lists.freedesktop.org/mailman/listinfo/dbus</a><br>
<br></blockquote></div><br></div></div>