Re: [exec] command & shell environment

Hamish <[email protected]>
Newsgroups gmane.comp.window-managers.fluxbox.user
Message-ID <[email protected]>
b4u68k wrote:
> thus providing standard environment variables (like $PATH or $LANG for ex.)
> to fluxbox (and the programs launched by ~/.fluxbox/keys and
> ~/.fluxbox/menu)?

In general variables will be inherited from the parent process.
Beware that for $PATH (? at least this is true for the extra library search
path, $LD_LIBRARY_PATH) on (at least Debian) that is not exported, for security
reasons. If you want to export (at least LD_LIB..) you need to rename it before
starting your term, then rename back.
Maybe not your problem, but it can be a real mystery as to why that won't work
so I thought I'd throw it in there.

> Like you suggested I could simulate the behavior of such a shell by 
> executing .bashrc, .bash_profile, or /etc/profile etc. in 
> ~/.fluxbox/startup:

note the "profile" ones are intended to be run at login time, the "rc" ones are
intended to be run when a new process is run.

see also ~/.xinitrc and ~/.xsession


Hamish




      ____________________________________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.