Re: Response Summary Re: Respecting standard X options (diatribe)
- From: Bradley Bell <bradleyb u washington edu>
- To: "David T. Bath" <bathd edipost auspost com au>
- Cc: gnome-devel-list gnome org
- Subject: Re: Response Summary Re: Respecting standard X options (diatribe)
- Date: Mon, 6 Nov 2000 14:16:47 -0800
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]