FVWM: Help with conditional commands

From: Tessa Lau <tlau-fvwm_at_ofb.net>
Date: Wed, 21 May 2003 16:25:12 -0400

I'm trying to create a function that warps the pointer to the
currently running browser (which could be Phoenix, Galeon, or
Mozilla), and if none of those browsers is running, starts up the
browser of my choice. Here's what I have:

DestroyFunc Warp-or-Run-Browser
AddToFunc Warp-or-Run-Browser
+ "I" Next ("*Phoenix") Warp-and-Raise
+ "I" Cond (Match) Break
+ "I" Next ("Galeon") Warp-and-Raise
+ "I" Cond (Match) Break
+ "I" Next ("Mozilla") Warp-and-Raise
+ "I" Cond (Match) Break
+ "I" Exec /home/tlau/bin/browser

If I invoke the function when no browsers are running, it correctly
starts up a new browser.

If I invoke this function when Mozilla is running, however, the pointer
warps to the running Mozilla, and also starts up a second instance of
my browser.

What am I doing wrong?

--Tessa

--
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 May 21 2003 - 16:08:31 BST

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