Re: FVWM: ExitFunction?

From: Dan Espen <dane_at_mk.telcordia.com>
Date: Wed, 21 Feb 2001 10:39:31 -0500

"Thomas A. Gardiner" <gardiner_at_pas.rochester.edu> writes:
> Hi,
>
> I'm not really sure of the answer, but think it might have to do with the
> process getting killed before it can be completed...
>
> Try adding a PipeRead command before the Exec. This will cause the
> function to wait for the shell script to exit.
>
> Hope it works...

Since lots of things fvwm Execs survive restarts and exits, I don't
think thats whats happening, but it can't hurt to try.

If I was doing this, I'd use the .xinitrc and set a "trap" to move
the file back.

> Tom
>
> On Wed, 21 Feb 2001, Andrew Sullivan wrote:
>
> >Hi,
> >
> >I'm trying to get something to work with ExitFunction, and it's not
> >happening. I wonder whether I mightn't be doing something wrong.
> >I've looked for example .fvwm2rc files that use this function, and
> >haven't had any luck.
> >
> >I have a shell script that a user wants to move her .forward file out
> >of the way when she logs in, and move it back when she leaves.
> >Simple enough; but she always logs in through X, and (of course) I
> >don't want the script to run every time she closes a shell.
> >
> >I figured the answer was ExitFunction, since the man page says
> >
> > Fvwm also has a special exit function: ExitFunction, exe­
> > cuted when exiting or restarting before actually quitting
> > or anything else.
> >
> >But when I run the script, it has no effect. (The script works
> >otherwise.) Initially I thought there might be an issue with
> >ExitFunction passing arguments, but that doesn't seem to be the case,
> >because there are no errors of any kind generated. Here's the call:
> >
> >AddToFunc ExitFunction "I" Exec /home/ajs/moveforward mvback-ni
> >
> >Any suggestions welcome.
> >
> >A
> >
> >
>
> --
> _________________________________________________________________________
> Thomas Gardiner

--
Dan Espen
444 Hoes Lane  Room RRC 1C-214           E-mail: dane_at_mk.telcordia.com
Piscataway, NJ 08854                     Phone: (732) 699-5570
--
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 21 2001 - 09:49:44 GMT

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