Re: [exec] command & shell environment

<[email protected]>
Newsgroups gmane.comp.window-managers.fluxbox.user
Message-ID <[email protected]>
Hi Hamish, thanks for your insights.

On Sun, 17 Feb 2008 23:12:31 +0100 Hamish wrote:
>In general variables will be inherited from the parent process.

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

For these reasons I thought there would be at least one shell 
process running at the time when ~/.fluxbox/startup file is read 
(one reason I see for this is precisely so that this file can be 
parsed).

So according to man bash, if an interactive or login shell is 
already running before startfluxbox is executed, then the 
environment provided by ~/.bashrc would be available to fluxbox, 
without having to export the variables "manually" in 
~/.fluxbox/startup (but again I'm far from expert and things might 
not be working like this).

Anyway, here is my ~/.fluxbox/startup file:

.
.
.
export LANG=en_US.utf8
export TIGCC=/usr/local/tigcc
export PATH=$PATH:$TIGCC/bin

# Turn off beeps:
xset -b

# Applications you want to run with fluxbox.
# MAKE SURE THAT APPS THAT KEEP RUNNING HAVE AN ''&'' AT THE END.
#

xscreensaver -no-splash &
conky &
thunar --daemon &
vlc -I http --http-src ~/.vlc/http --http-host :8080 &

# And last but not least we start fluxbox.
# Because it is the last app you have to run it with ''exec'' 
before it.

exec /usr/bin/fluxbox -log ~/.fluxbox/log
.
.
.

Regards,
  --Nicolas

--
Click now and invest wisely with these mutual fund resources!
http://tagline.hushmail.com/fc/Ioyw6h4et1gPEN9307dsJJNddQzEesG9CpVvmPkLw0nFWtn8LBWH4Z/


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