FVWM: Re: Re: Timing problems with Close?

From: David S. Goldberg <dsg_at_linus.mitre.org>
Date: Fri, 06 Jun 1997 15:24:21 -0400

> Why not just define a function like this ?

> AddToFunc "ChangeStyle"
> + "I" Style "Netscape" StartsAnyWhere, ShowMapping

Because then I have to remember to run that function every time after
Netscape starts. I also have to reset it if I quit netscape (which
occasionally I need to do to free up colors; I find -install is broken
for plugins and applets) and want to rerun it. And there's no way to
define a run-netscape function the way I had wanted:

AddToFunc "DoNetscape"
+ "I" Style "Netscape" StartsOnDesk 5, SkipMapping
+ "I" Exec netscape
+ "I" Wait "Netscape"
+ "I" Style "Netscape" StartsAnywhere, ShowMapping

It doesn't work basically the the second Style gets executed before
the Netscape window pops up. I don't know why. Mabye it's that
same unmapped window problem I had with the shell script.

In addition, Netscape is not the only application I want this behavior
for, and I happen to be lazy. What FvwmCommand combined with a shell
gives me is the ability to have all this stuff happen automatically
without having to do all that typing to FvwmConsole. Sure I could
define a bunch of functions for every application and situtation. I'd
also have to define them twice, once in .fvwm2rc and once to
FvwmConsole since I hate doing restarts unless absolutely necessary.
With FvwmCommand and the shell, I get the behavior I want at the cost
of writing a few lines of /bin/sh and I only have to type them once.
In the worst case, I decide to add an Exec for a given script to a
menu or FvwmButton, but that's pretty rare. I do most of this stuff
at login.

--
Dave Goldberg
Post: The Mitre Corporation\MS B305\202 Burlington Rd.\Bedford, MA 01730
Phone: 617-271-3887
Email: dsg_at_mitre.org
--
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 Fri Jun 06 1997 - 14:30:08 BST

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