Hi list,
I have a simple shellscript, which output I would like to have made into
a menu. Reading from the manpage, I understand this should be possible
to do.
the shellscript is as follows:
#!/bin/sh
# fbsd-fvwm
echo "AddToMenu $1 $1 title"
for i in /usr/ports/$1/*; do
case $1 in
editors)
echo "+ %mini.edit.xpm%\"$(basename $i)\" Exec exec $(basename $i)
;;
audio)
echo "+ %mini.sound.xpm%\"$(basename $i)\" Exec exec $(basename $i)
;;
(and so on)
esac
done
Now, I try to add it to fvwmrc like this:
addtofunc makemenu
+ I Exec fbsd-fvwm $0
^^ taken from manpage for make-directory-menu or something similiar.
And to menu:
addtomenu somemenu
+ MissingSubmenuFunction makemenu
+ "editors" Popup editors
And I don't get any output, whilst running it on shell provides right
output. What am I missing?
Thanks,
Mikko
--
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 Sun Feb 13 2005 - 17:25:42 GMT