Failing to connect to D-Bus
andy at j2kvideo.com
Mon Sep 27 08:37:46 PDT 2010
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:
DBusConnection * connection;
LibHalContext * ctx;
dbus_error_init( &error );
connection = dbus_bus_get( DBUS_BUS_SYSTEM, &error );
if ( dbus_error_is_set( &error ) )
In the logs I am getting:
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
Checking the service messagebus I have:
service messagebus status
dbus-daemon (pid 1773) is running...
I haven't touched the configuration system.conf so I am a little lost why I
can't connect to the daemon.
Any ideas or pointers?
Thanks in advance, Andy
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the dbus