Cmake update patch for dbus master

Romain Pokrzywka romain at kdab.com
Mon Feb 15 14:12:20 PST 2010


On Tuesday 09 February 2010 06:58:53 Thiago Macieira wrote:

[...]

> > "Definitely. That's something that could be useful not only for the debug
> > vs. release case, but also for different versions of KDE apps running in
> > parallel. For example, I usually have a stable KDE-Windows build for my
> > common apps, then I have an enterprise4 branch build for Kontact, and I
> > also keep a trunk build for testing and development. Currently I have to
> > kill all processes (including dbus-daemon) everytime I need to switch
> > between those, which is a PITA. "
>
> I'd say the answer should be "Use the same technique as on Unix"
>
> If you require different busses, you just set a different environment
> variable (DBUS_SESSION_BUS_ADDRESS). It will be inherited by all processes
> in that session.

Ah ! how could I have overlooked that :)
As far as I'm concerned, that's all I need, since I run my KDE sessions from a console with some environment already set 
up (e.g. for KDEHOME), so adding the dbus env var in the environment is no problem. 

Still, Ralph is talking about another use case, where we don't have a console-provided environment.

[...]

>
> In theory, it would be possible to run two sets of those applications on
> the same computer, by the same user, if they were in separate buses. But at
> least on Unix, kdeinit4 also creates a socket which is keyed to the X
> display, so it wouldn't work -- on Windows, it may.
>

It does. That's why the idea of having multiple dbus-daemons running and apps talking to the right one is tempting. 
However, I don't think ensuring the apps talk to the right daemon is really the responsibility of dbus, so I think I 
agree with you below.

[...]

>
> > The conclusion is there must be a way to separate a dbus-daemon to a
> > specific release. But how to implement such a feature ?
>
> I disagree that there is such a need.

Me too. That's something I'd rather fix in kde-win if really needed.
 
>
> [snip the rest]



-- 
Romain Pokrzywka | romain at kdab.com | Certified Qt Software Engineer & Trainer
Klarälvdalens Datakonsult AB, a KDAB Group company
Tel. Sweden (HQ) +46-563-540090, USA +1-866-777-KDAB(5322)
KDAB - Qt Experts - Platform-independent software solutions


More information about the dbus mailing list