head.daveops.net

Snippets for yer computer needs

Python - D-Bus

Python - D-Bus

@Python

Connecting to D-Bus

import dbus

bus = dbus.SystemBus()
try:
    thing = bus.get_object('com.tech.Thing', '/com/tech/Thing')
except:
    print("Oh snap, couldn't connect")