Session Bus Problems

Thiago Macieira thiago at kde.org
Mon Mar 3 07:27:53 PST 2008


On Monday 03 March 2008 16:20:40 Robert Rawlins wrote:
> Hello Guys,
>
> I posted about this a couple of weeks back but think I posted to the wrong
> mail chain and it got lost amongst the ether.
>
> I'm having problems with my systems session bus, I'm not quite sure why,
> but I cant seem to use the Session bus in any way. When trying to connect
> to the session bus through my own code I get the following error:
>
> dbus.exceptions.DBusException: org.freedesktop.DBus.Error.Spawn.ExecFailed:
> dbus-launch failed to autolaunch D-Bus session: Autolaunch error: X11
> initialization failed.
>
> I also find that whenever I'm trying to use a service which has been built
> to launch onto the session bus, it wont run and throws errors during its
> launch, a very similar error to above about X11 not working.
>
> Can you guys give me a little help and advice into debugging what's causing
> this issue? I really don't know where to start looking. If you need any
> more information then ask away and I'll let you know as best I can.

Are you running your program inside X? Is $DISPLAY set?

If you're not running inside X, did you start the session bus before you 
attempted to run your program?
-- 
  Thiago Macieira  -  thiago (AT) macieira.info - thiago (AT) kde.org
    PGP/GPG: 0x6EF45358; fingerprint:
    E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://lists.freedesktop.org/archives/dbus/attachments/20080303/db1f71c0/attachment.pgp 


More information about the dbus mailing list