Hi Tavis,

> AddToFunc CondAdd I Test (f $0) AddToMenu $1 %$2%$3 Exec $0
> 
> Then you just need to 
> 
> CondAdd /usr/bin/mozilla Programs mozilla.xpm Mozilla
> CondAdd /usr/bin/netscape Programs netscape.xpm Netscape
> CondAdd /usr/X11R6/bin/xterm Programs xterm.xpm Terminal

This works great!

AddToMenu "[EMAIL PROTECTED]@" "MuLTiMeDia" Title
Test (x xine) AddToMenu Multimedia "&XiNe (DVD Player)%xine.xpm%" Exec exec xine
Test (x xcdroast) AddToMenu Multimedia "XCD&RoaST" Exec xhost + && exec xcdroast
Test (x gtcd) AddToMenu Multimedia "&CD PLaYeR%cdPlayer.xpm%" Exec exec gtcd
Test (x dvdrip) AddToMenu Multimedia "&dvd::rip" Exec exec dvdrip

I like that $PATH is searched to find if a binary exists. (ie. I don't
have to specify the exact path to each binary.)

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 [EMAIL PROTECTED]
To report problems, send mail to [EMAIL PROTECTED]

Reply via email to