Location of system socket

Lawrence D'Oliveiro ldo at geek-central.gen.nz
Sun Dec 16 21:12:02 UTC 2018


On Sun, 16 Dec 2018 12:33:24 -0500, Felipe Gasper wrote:

> What is the best way to find the system bus socket’s location if,
> e.g., a custom location is compiled into libdbus?

Thinking about it, the default value hard-coded into libdbus cannot be
changed. Changing it breaks the protocol.

Why? Because not all bus peers on a system have to be using libdbus.
There are other alternative implementations of the D-Bus protocol. In
order for them to interoperate, they all have to agree on what the
protocol is. This includes finding the addresses for connecting to the
D-Bus daemon. Therefore, the default values hard-coded into libdbus
have to be considered part of the D-Bus protocol.


More information about the dbus mailing list