Comment 9 for bug 587004

Revision history for this message
Michael Vogt (mvo) wrote :

Is:
"""
bus=dbus.SystemBus()
obj=bus.get_object('org.freedesktop.DBus', '/org/freedesktop/DBus')
interface=dbus.Interface(obj, 'org.freedesktop.DBus')
aptd_running = "org.debian.org" in interface.ListNames()
"""
the best way for testing this ? Inflated 10 times of course because it has
to be done in C ? Or is there a low-level dbus method that is better suited?