title: Is there any way to read Linux Desktop Notification with Python?
body: <p>I need to read Linux Desktop Notification with Python. My head ran out of ideas and I can't think of an method of doing that.</p>
  
  <p>This is the best I can do using dbus:</p>
  
  <pre class="lang-py prettyprint-override"><code>import gi.repository.GLib
  import dbus
  from dbus.mainloop.glib import DBusGMainLoop
  
  def notifications(bus, message):
      print(str(message))
  DBusGMainLoop(set_as_default=True)
  
  bus = dbus.SessionBus()
  bus.add_match_string_non_blocking("eavesdrop=true, interface='org.freedesktop.Notifications', member='Notify'")
  bus.add_message_filter(notifications)
  
  mainloop = gi.repository.GLib.MainLoop()
  mainloop.run()
  </code></pre>
  
  <p>Seems that this code just returns objects from GLib</p>