Re: [exec] command & shell environment
| Newsgroups | gmane.comp.window-managers.fluxbox.user |
|---|---|
| Message-ID | <[email protected]> |
>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 :) Hi Mathias, thanks a lot for your time. If I understand well, a shell environment is provided only by login or interactive shells. So is there a way to launch fluxbox in the context of a login/interactive shell, thus providing standard environment variables (like $PATH or $LANG for ex.) to fluxbox (and the programs launched by ~/.fluxbox/keys and ~/.fluxbox/menu)? Like you suggested I could simulate the behavior of such a shell by executing .bashrc, .bash_profile, or /etc/profile etc. in ~/.fluxbox/startup: . . . /bin/sh -c "source .bashrc; source .bash_profile" exec /usr/bin/fluxbox -log ~/.fluxbox/log or something similar, but that would be very depended of bash (if I install an other shell it wont be the same syntax/config files). Maybe a more elaborate script than the two lines above... :-) Thanks again fluxbox rocks -- Nicolas -- Click here to make your plans for exciting travel all over the world! http://tagline.hushmail.com/fc/Ioyw6h4dvl7YxixDYE8PUQ5SsTB3Zi2AGI1Nn8ZC1OypuAUXSgOdsZ/ ------------------------------------------------------------------------- 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/