Hi,<div><br></div><div>I have started to develop a client using a D-Bus service. For some reason I am always getting an error on initialisation using the following code:</div><div><div><br></div><div> DBusConnection * connection;</div>
<div> DBusError error;</div><div><br></div><div> LibHalContext * ctx;</div><div> dbus_error_init( &error );</div><div> connection = dbus_bus_get( DBUS_BUS_SYSTEM, &error );</div><div><br></div><div> if ( dbus_error_is_set( &error ) )</div>
<div> {</div><div> return 0;</div><div> }</div><div><br></div><div>In the logs I am getting:</div><div><br></div><div><div>Unable to connect to DBus: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.</div>
</div><div><br></div><div>Checking the service messagebus I have:</div><div><br></div><div><div>service messagebus status</div><div>dbus-daemon (pid 1773) is running...</div></div><div><br></div><div>I haven't touched the configuration system.conf so I am a little lost why I can't connect to the daemon.</div>
<div><br></div><div>Any ideas or pointers?</div><div><br></div><div>Thanks in advance, Andy</div></div>