bug with 5 code lines

Ralf Habacker ralf.habacker at freenet.de
Thu Nov 19 11:53:46 PST 2009


Julien Isorce schrieb:
> Hi,
>
> I isolated the problem I am facing to:
>
> If I run the dbus-daemon with a userA
> and  if I run dbus-send with a userB
> then the result is the same as if the dbus-daemon was not running (so 
> it fails)
> (it's ok if the 2 users are the same)
By default the dbus library and the daemon provides a session bus which 
is user specific and only accessable by the same user.

In your case you need to run dbus-daemon as system bus by

dbus-daemon --system

then set an environment variable to the recent system bus address (see 
<listen> statement  in <dbus-install-root>/etc/system.conf for details)

set DBUS_SYSTEM_BUS_ADDRESS=tcp:host=localhost,port=12434

and run for example

    qdbus --system

to get a list of possible connections. In my case this is

:1.6
:1.9
org.freedesktop.DBus

dbus-send should then work also.

Regards
 Ralf


More information about the dbus mailing list