Re: [exec] command & shell environment
"Mathias Gumz" <[email protected]>
| Newsgroups | gmane.comp.window-managers.fluxbox.user |
|---|---|
| Message-ID | <[email protected]> |
> a clean way to pass the user-defined environment variables exported
> by ~/.bashrc to the invoked program (in this case urxvt)? The same
you need to setup your environment before fluxbox starts. when you
launch a xterm and find your shell in good shape environment-wise then
thats because of the xterm launches bash which reads ~/.bashrc (or
whatever shell you prefer) and done. the environment for xterm is
basically empty when you fire it up. fluxbox uses /bin/sh as the
launcher to fire up other apps and even if /bin/sh is linked to
/bin/bash there is no reason for the shell to read in ~/.bashrc since
thats the file read in when bash is a login/interactive shell ...
which is not the case :)
so, the prefered way to do things is to use
~/.fluxbox/startup
and launch your fluxbox session with
startfluxbox
(which then reads and executes ~/.fluxbox/startup)
you can launch other apps from .fluxbox/startup OR set environment
variables which are then available to fluxbox.
if you need for some reason just a couple environment settings for a
special programm then
ExecCommand FOO=BAR xterm
is ok.
cheers,
m
--
[uid] mathias gumz [mail] akira at fluxbox dot org [pgp] 1024D/F6F6B18C
[www] http://www.darkshed.net/ [irc] ak|ra (#fluxbox at freenode.org)
-------------------------------------------------------------------------
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/