trinity-devel@lists.pearsoncomputing.net

Message: previous - next
Month: September 2012

Re: [trinity-devel] "KDE4 is running"

From: Serghei Amelian <serghei@...>
Date: Wed, 5 Sep 2012 22:13:07 +0300
On Wednesday 05 September 2012 22:04:58 Darrell Anderson wrote:
> While tinkering with kdDebug I noticed the following message in my xsession
> log:
>
> KDE4 is running
>
> Um, nope, that would be incorrect. :)
>
> The message is found in tdelibs/kded/kded.cpp:165-171:
>
> TQString version = getenv( "KDE_SESSION_VERSION" );
> TQStringList blacklist;
> if ( version >= "4" )
> {
>     kdDebug(7020) << "KDE4 is running." << endl;
>     blacklist << "mediamanager" << "medianotifier" << "kmilod" <<
> "kwrited"; }
>
> I'm no C++ coder but I believe the problem is 'version' is declared as a
> string but the test for the message is comparing a string to an integer.

Nope, "version" is TQString and ">=" is perfect valid operator. For some 
reason, seems that "KDE_SESSION_VERSION" contains some string that is 
interpreted as "bigger" than "4". Are you sure that "KDE_SESSION_VERSION" is 
empty?

[...]

-- 
Serghei