DBus connect problems during dbus_g_bus_get

Steve Kreyer steve.kreyer at web.de
Mon Sep 10 14:48:54 PDT 2007


Hi Havoc,

yes the dbus-launch tool is what I've looked for. Thanks for this advice!
Havoc Pennington wrote:
> Or more simply, try "dbus-launch yourapphere"
>   
Since I have two processes (client and server), which do communicate
over d-bus, I have to start a single dbus-daemon instance this way:
if test -z "$DBUS_SESSION_BUS_ADDRESS" ; then
  eval `/tmp/gtk_fb/bin/dbus-launch --auto-syntax`
  export DBUS_SESSION_BUS_ADDRESS
  export DBUS_SESSION_BUS_PID
fi
like it's suggested in the man page. This does the job.
> (dbus-launch man page may be helpful)
>
> Havoc
Thanks,
Steve
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3245 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.freedesktop.org/archives/dbus/attachments/20070910/89f5a51d/attachment.bin 


More information about the dbus mailing list