Unable to connect to the daemon
walters at verbum.org
Thu Feb 17 18:21:20 PST 2005
On Tue, 2005-02-15 at 17:08 +0530, Raj wrote:
>i'm a newbie to D-BUS. I was trying to build & run a program
>which connects to the D-BUS per-session daemon & sends a message.
>Another program reads the message.
>But for some reason the program fails with the following error
>" Failed to connect to the D-BUS daemon: Message did not receive a
Hmm. Are you sure that the daemon is actually running? My guess is
that the daemon died because of some weirdness in your session.conf (in
particular having two <listen> directives looks wrong).
For what it's worth, I don't use a custom .conf file. Instead I do
debugging like this:
In one terminal, run:
DBUS_VERBOSE=1 dbus-daemon --session --print-address
That will print an address like this (along with other debug goo):
Then in another terminal, do:
Now just run your test service:
./service # or whatever
In another terminal, I do the same export, then run the test clients.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.freedesktop.org/archives/dbus/attachments/20050217/86f751ff/attachment.pgp
More information about the dbus