<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
On 12/16/18 10:33 AM, Felipe Gasper wrote:
<div class="moz-forward-container">
<blockquote type="cite"
cite="mid:6CA3984A-897A-4E44-A482-5C95783C22F6@felipegasper.com">
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">On Dec 16, 2018, at 12:42 PM, Matt Wette <a class="moz-txt-link-rfc2396E" href="mailto:matt.wette@gmail.com" moz-do-not-send="true"><matt.wette@gmail.com></a> wrote:
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">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
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">not sure the best, but ...
$ grep '<listen>' /etc/dbus-1/system.conf
<listen>unix:path=/var/run/dbus/system_bus_socket</listen>
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">That’s assuming that we know the location of the system.conf file. How to discover that?
-FG
</pre>
</blockquote>
<pre>$ 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.
</pre>
</div>
</body>
</html>