FVWM: Re: parsing in restart_function() in fvwm/builtins.c?

From: Bob Woodside <proteus_at_pcnet.com>
Date: Thu, 21 Aug 1997 22:04:31 -0400 (EDT)

On Wed, 20 Aug 1997, Dan Astoorian <djast_at_ppp12.utopia.csas.com> wrote:

> I use FvwmButtons, with this line...
>
> *FvwmButtons Restart icon.xpm Restart fvwm2

> When FvwmButtons sends commands to fvwm2, it includes the trailing
> newline, and fvwm2 isn't parsing it out, so it tries to start a command
> named "fvwm2\n".

> Would it break anything if restart_function() were changed to parse out
> the first word after the command?


        I wouldn't recommend changing the restart function to compensate for
a bug in the FvwmButtons interface (if that were the case): that would be
degrading code that's working nicely instead of fixing what's broken.

        However, I think that if you try something along the following lines
you'll be more than satisfied with the result:

       *FvwmButtons(Title Restart, Icon icon.xpm, Action "Restart fvwm2")

or whatever your Favorite Virtuous Window Manager is called.


        Cheers,
        Bob
--
Visit the official FVWM web page at <URL:http://www.hpc.uh.edu/fvwm/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_hpc.uh.edu.
To report problems, send mail to fvwm-owner_at_hpc.uh.edu.
Received on Thu Aug 21 1997 - 21:09:50 BST

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:38:00 BST