Re: [exec] command & shell environment
| Newsgroups | gmane.comp.window-managers.fluxbox.user |
|---|---|
| Message-ID | <[email protected]> |
On Sun, 17 Feb 2008 01:18:50 +0100 "C. Ahlstrom" <[email protected]> wrote: >Have you tried writing a wrapper script that exports all the >necessary >variables and then runs the application? > >I write little scripts like that to, for example, start up all the >things I need in vmware. Well in this case the wrapper script would be ~/.bashrc :-) Maybe I could do something like: [exec] (urxvt) {sh -c "source .bashrc; urxvt"} for each program that relies on $LANG and other standard variables. But it would be very nice if "exec" and "ExecCommand" did the job of exporting the bash environement before launching the program, so that everything written between '{' .. and '}' can also be executed directly from a shell prompt :-) Maybe I'll take a look at the source code to see how it is done. Thanks for your answer (and sorry for the double post), -- Nicolas -- Click here and choose from thousands of high quality used cars. http://tagline.hushmail.com/fc/Ioyw6h4fKQ108PnN9QOJ3QbnEklD8RhJ9qofpcRI13cRowyy6NryPj/ ------------------------------------------------------------------------- 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/