On Fri, Oct 07, 2005 at 02:47:40PM +0300, Andrei Popov wrote: > Hello All. > > Is there an easy way to make FVWM somehow read/source the env vars I > set in .bashrc/.zshrc?
I have a similar problem. When I start an xterm from FVWM, my .bash_profile sets the desktop and page location as environment variables within that terminal. Then it creates a file corresponding to that location, so if the system goes down, I can just execute that file to get the xterm back where it was. In my .bash_logout, I delete the file. My problem is, if I use ctrl-s to make the xterm sticky and move it to another desk and page, I want to change those environment variables *within that shell*, and update the created file to point to the new location. So far I haven't found a way to do this cleanly, though a lot of half-solutions have suggested themselves. But changing environment vars within a running xterm, I have no idea how to do without going into that xterm by hand and changing them, or sourcing a file. I don't see how to do this via the pure FVWM interface. Be well, Zack > > An example: At the top of my fvwm config I currently _have_ to use > "SetEnv OOO_FORCE_DESKTOP Gnome", otherwise whenever I start, say, > swriter from an FVWM menu, the Gnome look-n-feel is not used, -- > altough the variable is already set in ~/.bashrc (export > OOO_FORCE_DESKTOP=Gnome). > > Naturally, when swriter is started from Xterm all works as expected. > > I've read man fvwm but all I could find was SetEnv/UnsetEnv. > > To make things worse, I use both zsh an bash, so my goal is to > possibly define the vars in a single file, then make zsh and bash > source it. This would work for most vars and aliases, however I've no > clue how to do the same thing for FVWM. > > If it matters, I use GDM to login. > > Any soluions or pointers are appreciated. > > -- > WBR, > Andrei Popov > > Debian Sarge, FVWM 2.5.12 > > > -- Zack Brown