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

List:       kde-core-devel
Subject:    Re: kmapnotify, LD_PRELOAD, (t)csh and aaarrgh! I'll die today! :-)
From:       Michael Matz <matz () ifh ! de>
Date:       2000-05-30 9:56:06
[Download RAW message or body]

Hi,

On Mon, 29 May 2000, Rik Hemsley wrote:
> I think this will probably do the job satisfactorily:
> 
> QString prefix =
>   (QString(getenv("SHELL")).right(3) == "csh") ?
>   "setenv LD_PRELOAD %1 ;" :
>   "LD_PRELOAD=%1;";
> 
> proc << prefix.arg(lib);
> 
> Ah well, I suppose being able to compromise is a virtue.

Note that 'setenv' in *csh has a similar effect as 'EXPORT' which is not
what we want for 'LD_PRELOAD'. We don't want to load this DSO for every
binary which gets loaded by any shell (think of a konsole loaded with
KRun).


Ciao,
Michael.

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

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