[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: Bug#3008: dcopserver does not compile under Solaris (fwd)
From:       David Faure <david () mandrakesoft ! com>
Date:       2000-04-12 18:47:43
[Download RAW message or body]

On Wed, Apr 12, 2000 at 10:25:19AM -0700, Waldo Bastian wrote:
> On Wed, 12 Apr 2000, Stephan Kulow wrote:
> > David Faure wrote:
> > > On Wed, Apr 12, 2000 at 01:29:39PM +0200, Matthias Ettrich wrote:
> > > > > Don't worry, kdecore ships unsetenv when the system doesn't.
> > > >
> > > > The problem is that dcopserver doesn't use kde libararies at all, and
> > > > neither should it.
> > >
> > > Ooohh.
> > > Then it has to use (huh, copy) the setenv and unsetenv fakes (which are
> > > defined only when the function doesn't exist on the system).
> > > See kdecore/fakes.cpp.
> >
> > Hihi - then all your configure test splitting was for no good? :)
> > I already wondered but didn't had an explanation - if it's just the
> > unsetenv, a putenv("DCOP_SERVER="); does the trick.
> 
> 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".

Oh :(

So there's no portable way to unset an environment variable ?

-- 
David FAURE, david@mandrakesoft.com, faure@kde.org
http://home.clara.net/faure/
KDE, Making The Future of Computing Available Today
See http://www.kde.org/kde1-and-kde2.html for how to set up KDE 2

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic