Re: FVWM: Help with conditional commands

From: Olivier Chapuis <olivier.chapuis_at_free.fr>
Date: Wed, 21 May 2003 23:56:55 +0200

On Wed, May 21, 2003 at 04:25:12PM -0400, Tessa Lau wrote:
>
> 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.
>

Are you sure that "Mozilla" match the name, icon name, class or resource
of your running Mozilla (try FvwmIdent)?
I need Mozilla* (or Mozilla-bin) for matching my Mozilla.

Regards, Olivier
--
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 - 17:14:02 BST

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