Detecting KDE session (was Re: Qt KDE integration in kdereview.)

Thiago Macieira thiago at kde.org
Fri Nov 6 00:20:18 GMT 2009


Em Quarta-feira 4. Novembro 2009, às 05.15.38, Lubos Lunak escreveu:
> 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.

IMHO, Qt should assume KDE unless it detects GNOME. So enable KDE integration 
for all those cases.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
  Senior Product Manager - Nokia, Qt Development Frameworks
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20091105/a0704aef/attachment.sig>


More information about the kde-core-devel mailing list