Re: FVWM: Broken Dynamic Menus

From: Mikhael Goikhman <migo_at_homemail.com>
Date: Wed, 19 Jan 2005 15:39:02 +0000

On 18 Jan 2005 23:24:58 -0500, Scott Rubin wrote:
>
> Ok, so I have some dynamic menus (FuncFvwmMenuDirectory) I use for browsing
> certain directories on my drive. Mostly my documents, movies and music
> directories. They worked and still partially do. Recently I modified my
> menus a bit and now my dynamic menus only allow me to browse 2 directories
> deep. It simply wont do anything if I try to browse deeper than that. My
> fvwm configuration is available for your viewing pleasure at
> http://apreche.net/~apreche/fvwm2rc

On the second try, I can reproduce your problem. Your large "sed" line
seems buggy, if you remove the pipe to sed, it will work well.

Like I suggested in the previous message, don't code unix commands in
fvwm config directly (unless you are good in debugging of such things).
Instead, create a shell script my-fvwm-menu that gets one parameter
(dir name) and does all the work, like setting icons/titles and calling
fvwm-menu-directory with correct parameters, and filtering using sed,
if needed.

Then test this my-fvwm-menu script from the command line, and after you
verified it works for all your directories, use it like this:

  DestroyFunc FuncFvwmMenuDirectory
  AddToFunc FuncFvwmMenuDirectory
  + I PipeRead `my-fvwm-menu '$0'`

The DestroyFunc line is very important when you debug your config, it
ensures you always replace the function (or menu) definition and not
unintentionally add to the previous definition.

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 Wed Jan 19 2005 - 09:40:07 GMT

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