Re: FVWM: Re: Query about .fvwm2-menu

From: H}vard Fosseng <havard.fosseng_at_usit.uio.no>
Date: Fri, 2 May 1997 17:04:01 +0200 (MET DST)

David S. Goldberg writes:

> That was my first reaction too, but running Exec in the ExitFunction
> may not work as expected since the Exec'd programs are effectively run
> in the background so fvwm may quit before he wants it to. One
> possibility would have the last script run a given X application and
> then in the ExitFunction he could Wait for that application's window
> before finishing.

I've been using this technique for some time:

_______________________________________________________________________________

AddToFunc Terminer
+ I Exec sh -c "rsh tag gnudoit \'\(hf-save-all-and-terminate\)\'; exec xlogo"
+ I Wait xlogo
+ I Quit

AddToMenu Session Session Title
+ &Quit Terminer

_______________________________________________________________________________

I.e. I exec "sh" with a single command line, the last command in which
is "xlogo". Any other X application should work, but something
lightweight seems the best choice here. It's not necessary to have the
final script run the X application itself, you can do that from the
.fvwmrc.



- Håvard Fosseng
--
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 Fri May 02 1997 - 10:04:27 BST

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