Fwd: Re: Location of system socket

Matt Wette <[email protected]>
Newsgroups gmane.comp.freedesktop.dbus
Message-ID <[email protected]>
On 12/16/18 10:33 AM, Felipe Gasper wrote:
>> On Dec 16, 2018, at 12:42 PM, Matt Wette<[email protected]>  wrote:
>>
>>> On 12/16/18 9:33 AM, Felipe Gasper wrote:
>>> Hi all,
>>>
>>> What is the best way to find the system bus socket’s location if, e.g., a custom location is compiled into libdbus? (Assuming libdbus is not loaded.)
>>>
>>> Thank you!
>>>
>>> -FG
>> not sure the best, but ...
>>
>>    $ grep '<listen>' /etc/dbus-1/system.conf
>>      <listen>unix:path=/var/run/dbus/system_bus_socket</listen>
> That’s assuming that we know the location of the system.conf file. How to discover that?
>
> -FG
>
$ which dbus-daemon
/usr/bin/dbus-daemon

$ strings /usr/bin/dbus-daemon | grep system.conf
/usr/share/dbus-1/system.conf

But still dbus-daemon could be started with --config-file=/path/to/file so if you
want something bullet-proof you'll have to be exhaustive on the startup options,
which binary is executed etc.

_______________________________________________
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.