Is there an easy way to dynamically set the title of the StartMenu?

I'm trying to come up with a function to do this, but am having a bit of
trouble.  Would something like the following work at all?

AddToFunc "CreateStartMenu"
  + "I" DestroyMenu StartMenu
  + "I" PipeRead 'echo `/bin/hostname -s` > $HOME/.fvwm/.hostname
  + "I" AddToMenu StartMenu `/bin/cat $HOME/.fvwm/.hostname` Title
  + "I" PipeRead `/bin/cat $HOME/.fvwm/.startmenu'
  + "I" /bin/rm $HOME/.fvwm/.hostname

.startmenu would contain the rest of my StartMenu, just so that I don't
have to type the rest of it out in the function.

This gives me a title of "/bin/cat $HOME/.fvwm/.hostname" instead of my
actual hostname.  Am I using PipeRead correctly here?

Thanks.
--
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