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

From: Bruce Stephens <B.Stephens_at_isode.com>
Date: Wed, 14 May 1997 16:05:26 +0100

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).


--
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 - 10:06:16 BST

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