D-Bus session bus
Ral Habacker
ralf.habacker at freenet.de
Thu Aug 26 21:38:50 CEST 2010
Kevin Krammer schrieb:
> Hi folks,
>
> I had some difficulties today getting the D-Bus session bus setup right.
>
> The base situation is like this:
>
> KDE is built into C:\KDE\trunk using emerge
> I am working on a "BitRock Install Builder" based installer for an application
> which uses Akonadi.
> The installer puts Akonadi, the application and some Akonadi resources into a
> subdirectory in c:\Program Files.
>
> When I run the application, it starts D-Bus and Akonadi (good), Akonadi starts
> the agents (it also finds the ones in C:\KDE\trunk\bin, but still ok).
>
> However, each of those started from %KDEROOT% starts its own D-Bus and its own
> Akonadi!
>
> Andreas hinted that I could try changing the D-Bus config to use tcp instead
> of autolaunch [1].
> Doing that made the app start D-Bus but fail to detect that (dbus-daemon was
> shown running in the process monitor, but the app complained about it not
> finding the session bus).
>
> I now got it working by commenting the patch apply setion in
> emerge/portage/win32libs-sources/dbus-src/dbus-src-1.3.1.py and using D-Bus
> config tcp with host and port.
>
The related patch extends the autolaunch feature with an installation
directory limited session bus.
This feature is required for multiple kde installations. It is enabled
by using the session bus address "autolaunch:scope=install-path"
> Since hardcoding a port is quite likely a bad idea, any suggestions what I
> could try instead?
>
in
http://websvn.kde.org/trunk/kdesupport/emerge/portage/win32libs-sources/dbus-src/dbus-src-1.3.1.py?view=log
there is a line
self.subinfo.options.configure.defines = "-DDBUS_ENABLE_XML_DOCS=OFF
-DDBUS_USE_EXPAT=ON
-DDBUS_SESSION_BUS_DEFAULT_ADDRESS:STRING=autolaunch:scope=install-path"
change it to
self.subinfo.options.configure.defines = "-DDBUS_ENABLE_XML_DOCS=OFF
-DDBUS_USE_EXPAT=ON -DDBUS_SESSION_BUS_DEFAULT_ADDRESS:STRING=autolaunch"
and recompile dbus-src.
I guess we need a dbus client config file to be able to set this without
using an environment variable.
Ralf
More information about the Kde-windows
mailing list