FVWM: Starting an app when needed

From: Martin Bialasinski <martin_at_internet-treff.uni-koeln.de>
Date: Sun, 7 Dec 1997 03:56:31 +0100 (CET)

Hi,

I have a programm "xisp" which I use for dialup. This programm can react
to SIGUSR1 (connect) and SIGUSR2 (disconnect), so I want to have a
menuoption to connect/disconnect remotely.

So far, I tried this:

I added these two lines to my menudefinition:

+ "connect" connect-xisp
+ "disconnect" exec kill -SIGUSR2 `cat /home/martinb/.xisppid`

AddToFunc "connect-xisp"
+ "I" None ["X-ISP"] exec xisp
+ "I" Exec kill -SIGUSR1 `cat /home/martinb/.xisppid`

Disconnecting works quite right, but the function connect-xisp has some
problems.

If xisp is already running, it works well.
But if xisp is not started yet, fvwm will start it and the kill -SIGUSR1
gets executed too fast.

The function should wait until the windows gets mapped, or something
similar if I change the startline to start xisp iconic.

Is there a way to do so?

Also sometimes xisp doesn't get started. The cursor changes from X to O
and back to X (you know what I mean :-), but xisp won't start...

This is fvwm 2.0.46
 
Ciao,
        Martin

--
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 Sat Dec 06 1997 - 21:40:53 GMT

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