disabling loading of kded autoload modules if KDE desktop is not running
Lubos Lunak
l.lunak at suse.cz
Thu May 13 13:38:21 BST 2004
On Thursday 13 of May 2004 14:25, Richard Moore wrote:
> On Thu, May 13, 2004 at 02:10:59PM +0200, Waldo Bastian wrote:
> > bool kde_running = ! QCString(getenv( "KDE_FULL_SESSION" )).isEmpty();
>
> IIRC getenv can return 0 which I think would make this call the wrong
> QCString constructor.
No, even if getenv() returns 0 (=NULL), it will be still char* :). It'd have
to be hardcoded as QCString( 0 ) for it to be int.
--
Lubos Lunak
KDE developer
---------------------------------------------------------------------
SuSE CR, s.r.o. e-mail: l.lunak at suse.cz , l.lunak at kde.org
Drahobejlova 27 tel: +420 2 9654 2373
190 00 Praha 9 fax: +420 2 9654 2374
Czech Republic http://www.suse.cz/
More information about the kde-core-devel
mailing list