GNOMEish way of doing dbus :)

Fridrich Strba fridrich.strba at bluewin.ch
Wed Apr 14 02:50:59 PDT 2010


Hello, wonderful people

Let me change the topic because this one is not about file-descriptor
passing anymore.

On Wed, 2010-04-14 at 12:07 +0300, Tor Lillqvist wrote: 
> And I would like to thank the KDE-on-Windows people for doing much of
> the hard work in making dbus work / keeping it working on Windows.
> Only small changes were needed to build it in the more "GNOMEish"
> fashion in the openSUSE Build Service.

I join Tor in paying to Cesar what is due to Cesar :)

Let me explain somehow what we did to make dbus work also the way our
GNOME stack on windows normally works.

A very ugly and standard non-compliant patch can be found in
http://pastebin.ca/1859665

It is a common place in GNOME applications for windows that we never
assume anything about installation prefix the user choses. That is why
in my patch I relocated two things:

1) Where the dbus process is looking for service files, and 
2) the "exec" path in the service files.

The patch I made adds in the configure a DBUS_PREFIX variable which will
be undefined in cmake build. This will mean that the cmake build will
behave the same way with this patch or without it (the
_dbus_windows_replace_prefix will only "pass through" if the DBUS_PREFIX
is not defined, which is the case in cmake build).

> Let's just hope that there won't be any uninteded break in
> interoperability between dbus binaries built for "KDE on Windows" and
> dbus binaries built for "GNOMEish" apps on Windows. Hopefully we agree
> that the intended situation is that even if a user has several
> instances of dbus binaries installed (one bundled with each app, or
> set of apps, from the same source), at most one instance of the
> session bus (the first one to be started) will actually be running at
> any time in a session, and the libraries in the other installations
> will find it.

This is not actually the case for the while with the way we do it. It
would be nice if we could come with a great solution to achieve it
though.

Cheers

Fridrich




More information about the dbus mailing list