Re: [exec] command & shell environment
"Mathias Gumz" <[email protected]>
| Newsgroups | gmane.comp.window-managers.fluxbox.user |
|---|---|
| Message-ID | <[email protected]> |
> 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 no, some shells read some files no matter if its a login or an interactive shell, for bash its /etc/profile and maybe ~/.bash_profile (but i am not a bash expert). > 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: not simulate. you can make .fluxbox/startup a bash script by ---------------------------------------------- #!/bin/bash source ~/.bashrc exec /usr/bin/fluxbox ---------------------------------------------- > /bin/sh -c "source .bashrc; source .bash_profile" that wouldnt really work anyway since /bin/sh would open a subshell and set up the environment in that subshell only .. which is instantly closed again :) > 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). true. thats why i only would set LC_ALL or LANG or EDITOR or XTERM in my .fluxbox/startup. i mean, you dont need aliases at the time fluxbox runs. you need them when you are interactive :) regards, 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/