You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Expose sd_bus_open_address or sd_bus_set_address for custom D-Bus transports #120
python-sdbus currently exposes sd_bus_open(), sd_bus_open_user(), sd_bus_open_system_remote(host), and machine helpers, but there does not
appear to be a way to open an explicit D-Bus address from Python.
This makes it difficult to use libsystemd-supported transports such as:
Use case: connect to a remote user bus over SSH via systemd-stdio-bridge --user. This works if DBUS_SESSION_BUS_ADDRESS is set
before calling sdbus.sd_bus_open_user(), but mutating process-global
environment variables is awkward and unsafe when opening multiple clients
concurrently.
The underlying libsystemd APIs support this through sd_bus_new() + sd_bus_set_address() + sd_bus_start() (and related sd_bus_set_fd() / sd_bus_set_exec() APIs), but python-sdbus does not seem to
expose an equivalent API.
Activity
igo95862 commentedon Jun 8, 2026
Definitely possible. I will look in to including this in the next version.