1 #!/usr/bin/python 2 3 import dbus, flimflam 4 5 flim = flimflam.FlimFlam(dbus.SystemBus()) 6 7 for service in flim.GetObjectList("Service"): 8 properties = service.GetProperties(utf8_strings = True) 9 10 print "[ %s ]" % (service.object_path) 11 12 for key in properties.keys(): 13 print " %s = %s" % \ 14 (key, flimflam.convert_dbus_value(properties[key], 4)) 15 16 print 17