dbuslib - D-Bus helpers¶
A collection of definitions and helpers for D-Bus usage in the CSTBox context.
-
pycstbox.dbuslib.dbus_init()¶ Initializes the D-Bus stuff so that messaging and signaling work.
MUST be called at the very begining of any process using D-Bus.
-
pycstbox.dbuslib.get_bus(logger=None)¶ Returns the D-Bus bus to be used.
Depending on the fact that the environment variable DBUS_SESSION_BUS_ADDRESS is set or not, either we use our own session bus, or the X user’s session one.
-
pycstbox.dbuslib.get_object(svc_name, obj_path)¶ Returns the service object corresponding to a connection name and an object path.
-
pycstbox.dbuslib.make_bus_name(short_name)¶ Returns a consistent bus name (well-known name), based on the short one (ie the last part)
-
pycstbox.dbuslib.make_interface_name(short_name)¶ Returns a consistent interface name, based on the abbreviated one (ie the last part)