Re: FVWM: User notification on invoking application

From: Mikhael Goikhman <migo_at_homemail.com>
Date: Wed, 7 Feb 2001 19:45:56 -0600

On 07 Feb 2001 12:20:57 -0800, Abinash Yadav wrote:
>
> I was thinking of notifying the user, status of
> application(watch cursor or some other mean,like pop
> up box) when he invokes it, and application takes time
> to come up.
>
> as there are many big applications which takes lots of
> time to come-up and meantime user just thinks wheather
> application is running or its dead.
>
> is it possible with fvwm, how ?

Yes, starting from 2.3.10 this is possible, for example:

  BusyCursor Wait True

  AddToFunc StartMyApp
  + I Exec exec $0
  + I Wait *

  StartMyApp "xterm -g 80x40"
  StartMyApp "xcalc"

NOTE: If your app was not started, press Ctrl-Alt-Esc to break out Wait.

But... The watch cursor is only shown on the root window, and not inside
existing windows. This can't be fixed without introducing X problems.

If your app comes slowly, you may use "pop-up" window (may work in 2.2.x):

  DestroyFunc StartMyVerySlowApp
  AddToFunc StartMyVerySlowApp
  + I Exec exec xmessage -name "NotificationWindow" "Starting $0..."
  + I Wait NotificationWindow
  + I Exec exec $0
  + I Wait *
  + I Next (NotificationWindow) Close

Regards,
Mikhael.
--
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 Feb 07 2001 - 19:48:06 GMT

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