On 03 Mar 2002 19:47:32 +0100, Anders K. Lyhne Th0gersen wrote:
>
> I am tying to use a small perlscript "fvwm-menu-dotfiles" to make
> a menu of my dotfiles. The script outputs a menu-body like this one:
>
> + ".bashrc" Exec "xterm -e /usr/local/bin/vim /home/alyhne/.bashrc"
> + ".bash_profile" Exec "xterm -e /usr/local/bin/vim /home/alyhne/.bash_profile"
This is incorrect. These entries will be added to a random (last defined,
not last activated) menu, or even to a function or a decor.
You should always execute AddToMenu before plus commands.
> I try to make this menu popup by using this piece of code:
>
> DestroyMenu MenuDotFiles
> AddToMenu MenuDotFiles
> + DynamicPopUpAction PipeRead "$HOME/.fvwm/bin/fvwm-menu-dotfiles"
>
> this menu i Popup, but all that happens is that my mouse cursor switches
> between active and inactive state.. What am i doing wrong?
>
> I use fvwm 2.4.0, and i have no problems when using fvwm-menu-directory
> with the MissingSubMenuFunction.. which by the way has made my life much
> easier!
Here is another approach. This is your fvwm-menu-dotfiles script:
#!/bin/sh
fvwm-menu-directory --all "$_at_" | grep -v '+ "[^.]'
I may add --only-hidden option to fvwm-menu-directory if you like.
Regards,
Mikhael.
--
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 Mar 03 2002 - 13:41:48 GMT