FVWM: Script output into menu

From: Mikko Heiskanen <mikko_at_whitecortex.net>
Date: Mon, 14 Feb 2005 01:25:00 +0200

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

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:37:57 BST