Detecting KDE session (was Re: Qt KDE integration in kdereview.)
Lubos Lunak
l.lunak at suse.cz
Wed Nov 4 13:15:38 GMT 2009
On Wednesday 04 of November 2009, Olivier Goffart wrote:
> Le Wednesday 04 November 2009, Albert Astals Cid a écrit :
> > One question, how does it decide if it should use the KDE integration or
> > the GTK one?
>
> We have some heuristics based on the running window manager, and the
> $DESKTOP_SESSION environement variable, and some X atoms.
>
> Basicly, Qt detect KDE if KWin is the window manager, or $DESKTOP_SESSION
> == kde or kde4
>
> There is more magic. the code is in qt_init() function in
> qapplication_x11.cpp
>
> This is not perfect but seems to work.
Gee. Please have a look at KDE_FULL_SESSION in startkde. Any good idea where
to put that information so that people don't always try to go to great
lengths to do it in a complicated and partially broken way when it's just
trivial (as long as one doesn't care about pretty old KDE versions)? This is
getting really boring.
--
Lubos Lunak
KDE developer
--------------------------------------------------------------
SUSE LINUX, s.r.o. e-mail: l.lunak at suse.cz , l.lunak at kde.org
Lihovarska 1060/12 tel: +420 284 084 672
190 00 Prague 9 fax: +420 284 028 951
Czech Republic http://www.suse.cz
More information about the kde-core-devel
mailing list