Re: FVWM: DynamicPopUpAction help

From: Dominik Vogt <dominik.vogt_at_gmx.de>
Date: Sun, 3 Mar 2002 20:35:04 +0100

On Sun, Mar 03, 2002 at 07:47:32PM +0100, Anders K. Lyhne Th0gersen wrote:
>
> Hello fellow fvwm users!
>
>
> 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"

If this is all thie script prints it can't work. You have to
define a menu first to which the menu entries are added.
Otherwise the lines may be added to a random menu or even a
fucntion. Try to replace the first '+' with
"AddToMenu <menuname>".

This may be a bit consusing. With the '+' command, you can add
items to the last menu or function that appeared in an AddToMenu
or AddToFunc command. If the initial menu definition is followed
by any other such commands, fvwm forgets it has ever added to the
MenuDotFiles menu. The DynamicPopUpAction is executed when you
open the menu, not when it is defined. A whole lot may happen in
between.

If you still can't make it run, post the perl script and all
relevant config lines.

> 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!

Bye

Dominik ^_^ ^_^

 --
Dominik Vogt, dominik.vogt_at_gmx.de
Reply-To: dominik.vogt_at_gmx.de
--
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:33:16 GMT

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