D-Bus windows help

brett at stottlemyer.com brett at stottlemyer.com
Sat Jul 7 10:01:56 PDT 2012

> On 03/07/12 14:51, Jesper Dam wrote:
>> You may find it a lot easier to get started if you use autolaunch: as
>> your dbus address, instead of nonce-tcp.
> If you know how autolaunching on Windows works/is meant to work, your
> comments on <https://bugs.freedesktop.org/show_bug.cgi?id=38201> would
> be very much appreciated.
> I'd particularly like to know what the advantages and disadvantages of
> autolaunch:, autolaunch:scope=*user and autolaunch:scope=*install-path
> are, and how an application distributor should choose which one to use,
> so we can make an informed decision about which one should be the D-Bus
> default.
It looks like autolaunch: uses named shared memory to detect the dbus
daemon and establish a connection.  The name is fixed for autolaunch:, but
if autolaunch:scope=*install-path is used, an extra hash is appended to
the name.  I'm guessing scope=*user is similar, but with a different value

I've had no luck getting nonce-tcp: working.  If I use autolaunch:, I need
to change the static value from
  static const char *cDBusDaemonAddressInfo = "DBusDaemonAddressInfo";
  static const char *cDBusDaemonAddressInfo = "Local\\DBusDaemonAddressInfo";
in dbus-sysdeps-win.c

This looks to be the issue described at this link

I need to use the following command to start dbus-daemon, otherwise it
starts as nonce-tcp:, it seems to ignore the environment variable
DBUS_SESSION_BUS_ADDRESS (I guess there is a different way to set the
address for the daemon)?
  dbus-daemon --session --address=autolaunch:

Since the address is not added if an application spawns the dbus-daemon, I
need to start the daemon myself first.

Now I am getting the verbose log showing connections being authenticated
but they seem to quit immediately.  This is trying to get the Qt
car/controller examples to connect, so there are two attempted
connections.  Can someone that knows how to interpret the verbose logs see
what is wrong?


-------------- next part --------------
A non-text attachment was scrubbed...
Name: dbus-daemon.log
Type: application/octet-stream
Size: 194549 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/dbus/attachments/20120707/e1c025c1/attachment-0001.obj>

More information about the dbus mailing list