Hi Jim,
> I have upgraded from 2.4.17 to 2.5.12. In 2.4.17
> I was able to use env variables directly in .fvwmrc,
> for example:
>
> *FvwmButtons: (Frame 2, Title $[HOST], Icon xterm.xpm, Action Exec
> "$[HOST]" exec /usr/bin/X11/xterm -geometry 80x60 -sb -sl 500 -j -ls -fn
> 6x13 -T $HOST -n $HOST &)
> read ConfigFvwmButtons.$[HOST]
I suspect your problem is that you do not have a HOST _environment_
variable. On my system, HOST is a local _shell_ variable, & (by definition)
not inherited by child processes.
To see if HOST was an environment variable or merely a shell
variable I did this:
env | /bin/grep -a ^HOST=
set | /bin/grep -a ^HOST=
I added this line to my ~/.zshenv file:
export HOSTNAME=${$(uname -n)%%.*}
& used $[HOSTNAME] in my .fvwm2rc file.
You might need to use slightly different syntax/files if you don't use zsh.
Hope that helps.
SCoTT. :)
--
Visit the official FVWM web page at <URL: http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_fvwm.org.
To report problems, send mail to fvwm-owner_at_fvwm.org.
Received on Wed Jan 12 2005 - 22:28:21 GMT