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