DBus connect problems during dbus_g_bus_get

Thiago Macieira thiago at kde.org
Mon Sep 10 05:53:00 PDT 2007


On Monday 10 September 2007 14:08:03 Steve Kreyer wrote:
> Hi!
>
> In one of my apps I want to connect to dbus. This app should run on a
> system where no X11 is available (instead Iam using gtk-directfb). So
> when the application starts I get the following error during
> dbus_g_bus_get  (Iam using the glib binding):
>
>     ** ERROR **: Failed to get on the bus: dbus-launch failed to
> autolaunch D-Bus session: Autolaunch error: X11 initialization failed.
>
> What went wrong? In general, is it possible to use the dbus daemon
> without running an X session?

Yes, but you need to start the D-Bus daemon manually in that case.

Autostart only works with an X11 display running.

-- 
  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/20070910/d4a518dd/attachment.pgp 


More information about the dbus mailing list