blob: 86c7d42dd162447a67e8607c89b75e6c17752b5a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#!/usr/bin/python
import gobject
import dbus
import dbus.mainloop.glib
def property_changed(name, value, path):
print "[%s] %s = %s" % (path, name, str(value))
if __name__ == '__main__':
dbus.mainloop.glib.DBusGMainLoop(set_as_default=True)
bus = dbus.SystemBus()
manager = dbus.Interface(bus.get_object("org.moblin.connman", "/"),
"org.moblin.connman.Manager")
bus.add_signal_receiver(property_changed,
signal_name = "PropertyChanged",
path_keyword="path")
mainloop = gobject.MainLoop()
mainloop.run()
|