Re: Environment vanishing (was Re: FVWM: Emacs does not...)

From: Richard A. Guay <rag_at_asicint.com>
Date: Wed, 14 May 1997 12:23:33 +0000

On 14 May 97 at 16:05, Bruce Stephens <Bruce Stephens
<B.Stephens_at_isode.com>> wrote:

>
> kvarga01_at_fiu.edu said:
> > In my case, yes. I don't believe I've ever been able to pass weird
> > environment variables. I know this because I once tried it with my
> > IRC environments. I set them in my .xsession hoping they'd get passed
> > to irc, but it never happened... I think I saw this come up on the
> > list one time earlier as well..... The case isn't that fvwm2 is
> > picking and choosing, I think the case is that it's not passing
> > ANY... It grabs it's PATH and LD_LIBRARY_PATH when necessary, and
> > runs what it has to run.
>
> That's odd. As far as I can see (just skimming through the code), fvwm2 is
> doing a fork(2) which preserves the environment, followed by an execl(3) which
> also preserves the environment. (This is for exec_command, which I assume
> FvwmButtons and things also use. If you also use xrsh, then be aware that
> xrsh only carries a few variables to the remote machine by default.)
>
> A quick check (setting *and exporting* the variable FOOBAR in .xsession and
> logging out and back in again) shows that FOOBAR is carried through correctly.
> I'd guess this is not fvwm2's problem---it's either user error, or some weird
> difference in how fork/execl behave on your machine (I'm using Solaris2.5).

It not that fvwm is not passing the environment variable. What I
have found is that if the script that launches fvwm is different than
the shell that you have your environment variables set, then you will
not get the environment in fvwm that you thought you were. For
example, for a while a bourne shell was used to execute my .xinitrc
file while I use zsh for my main shell. In this case, I did not get
my environment variables set because they are set in my .zshrc file
and not my .profile file. When I switch my .xinitrc file to run as a
zsh program, then I got the environment that I expected to get.
Therefore, if you are using a csh, make sure that the script that
launches your fvwm session is also a csh script!

Richard A. Guay
Network Administrator and ASIC Design Engineer
ASIC International Inc.
rag_at_asicint.com
http://www.asicint.com
--
Visit the official FVWM web page at <URL:http://www.hpc.uh.edu/fvwm/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_hpc.uh.edu.
To report problems, send mail to fvwm-owner_at_hpc.uh.edu.
Received on Wed May 14 1997 - 11:23:45 BST

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:38:00 BST