From kde-core-devel Thu Apr 13 01:38:43 2000 From: Waldo Bastian Date: Thu, 13 Apr 2000 01:38:43 +0000 To: kde-core-devel Subject: Checking for getenv("SESSION_MANAGER") (Was: Bug#3008: dcopserver does not compile under Solaris) X-MARC-Message: https://marc.info/?l=kde-core-devel&m=95558992319053 On Wed, 12 Apr 2000, Stephan Kulow wrote: > > Hm. almost. > > > > putenv("SESSION_MANAGER=") clears the env variable but it doesn't > > undefine it. So getenv("SESSION_MANAGER") still returns a non-null > > pointer. Now dcopserver gives a Qt generated "Session management error". > > Hmm ;( > looking at the unsetenv implementation I'm afraid it's not portable at > all. > Our fake sets it to null, so could you please check not for non-null > pointer, but for non-null value? The check for SESSION_MANAGER is in qapplication_x11.cpp. The trolls need to change that. (CC'ed to qt-bugs@troll.no) > The unsetenv function of glibc removes the string from the environment > field. Cheers, Waldo