Re: FVWM: Best place to set the environment?

From: Dan Espen <dane_at_mk.telcordia.com>
Date: Wed, 11 Feb 2004 14:08:21 -0500

"Felix E. Klee" <felix.klee.fvwm_at_gmx.net> writes:
> Hi,
>
> I wonder what is the best place to initialize environment variables.
>
> Until recently, I let them be initialized with a line
> source .environment
> in my .xinitrc right before the window manager is started
> (".environment" contains lines of the kind "export VAR=..."). An
> advantage of this method is that .environment can, via ~/.bash_profile,
> also be used to initialize a BASH login shell. A disadvantage is that I
> have to restart the X server in order to reinitialize environment
> variables "globally".
>
> This disadvantage made me think of initializing the environment in my
> FVWM config. I just tried the following setup which seems to work fine
> ("environment" contains lines of the type "setenv VAR ...",
> "FVWM_ORIG_PATH" is used in order to reinitialize the path in
> "environment").

If the variable is just for fvwm, the fvwm config file is fine.
If it's for all your X applications, the .xinitrc makes sense,
especially if you might run another window manager.
Similar logic might lead you to your your .profile, or .kshrc
or .bashrc.

-- 
Dan Espen                           E-mail: dane_at_mk.telcordia.com
--
Visit the official FVWM web page at <URL: http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_fvwm.org.
To report problems, send mail to fvwm-owner_at_fvwm.org.
Received on Wed Feb 11 2004 - 13:11:40 GMT

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:37:56 BST