Re: Location of system socket

Felipe Gasper <felipe-c4PQK5fb7feI/[email protected]>
Newsgroups gmane.comp.freedesktop.dbus
Message-ID <[email protected]>
> On Dec 16, 2018, at 4:12 PM, Lawrence D'Oliveiro <[email protected]> wrote:
> 
> 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.

Thank you for everyone’s responses thus far.

So, to give a bit more context:

My MacPorts dbus install puts the system socket at /opt/local/var/run/dbus/system_bus_socket. That path is hard-coded into libdbus but doesn’t appear to be available to any other client library.

Is this a bug in the MacPorts installation, then?

-FG
_______________________________________________
dbus mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dbus
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.