Hi<br>
<br>
I need to connect to Avahi from php via d-bus.<br>
I get the message:<br>
<br>
Warning: dbusconnection::<div id=":jh" class="ii gt">sendwithreplyandblock():<br>
dbus_connection_send_with_reply_and_block() failed (Launch helper exited<br>
with unknown return code 255) in<br>
....<br>
<br>
When executing:<br>
<br>
$m = new DBusMessage(DBUS_MESSAGE_TYPE_METHOD_CALL);<br>
$m-&gt;setDestination(&quot;org.freedesktop.Avahi&quot;);<br>
$m-&gt;setPath(&quot;/org/freedesktop/Avahi&quot;);<br>
$m-&gt;setInterface(&quot;org.freedesktop.Avahi.Server&quot;);<br>
$m-&gt;setMember(&quot;GetHostName&quot;);<br>
$m-&gt;setAutoStart(true);<br>
<br>
$r = $dbus-&gt;sendWithReplyAndBlock($m,3);<br>
<br>
What is the correct object path Avahi(Server) is registered under, I get<br>
the same error with different pathes<br>
including /org/freedesktop/Avahi/Server .<br>
I set the property &#39;enable-dbus=yes&#39; in avahi-daemon.conf, and I have created a .service file<br>
/usr/share/dbus-1/services/org.freedesktop.Avahi.service<br>
contaning:<br>
<br>
[D-BUS Service]<br>
Name=org.freedesktop.Avahi<br>
Exec=/usr/sbin/avahi-daemon<br>
User=root<br>
<br>
It solved the problem of destination, but maybe the problem is there?<br>
<br>
Hopefully thanks from Morten Telling Nielsen.</div>