Re: Response Summary Re: Respecting standard X options (diatribe)



On Tue, Nov 07, 2000 at 06:05:32AM +1100, David T. Bath wrote:
> 
> Gareth B wrote:
>   >  [me beta]$ DISPLAY=alpha:0.0 /opt/gnome/bin/sol &
>   >then this should work. This overrides $DISPLAY only for the current
>   >command.
> Nope - I wanna call exec() not system() -- this needs interpretation
> by a SHELL.  (At least Gareth's solution kinda works)

I know that this is just another quickfix, but you don't really need a shell
to set environment variables. in C for example:
setenv("DISPLAY", "alpha:0.0", 1);
execl("/opt/gnome/bin/sol", "sol", NULL);

-brad







[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]