Re: FVWM: FvwmPerl preprocessing

From: Mikhael Goikhman <migo_at_homemail.com>
Date: Sun, 14 Sep 2003 09:24:48 +0300

On 13 Sep 2003 22:02:36 -0300, romildo_at_uber.com.br wrote:
>
> On Sun, Sep 14, 2003 at 03:06:15AM +0300, Mikhael Goikhman wrote:
> > On 13 Sep 2003 20:41:57 -0300, romildo_at_uber.com.br wrote:
> > > ==========================================================
> > > AddToFunc StartFunction
> > > + I Module FvwmPerl
> > >
> > > DestroyFunc .
> > > AddToFunc .
> > > + I SendToModule FvwmPerl preprocess -c -- $*
> > > ==========================================================
> > >
> > > The . function would preprocess its argument prior
> > > to delivering it to Fvwm.
> > >
> > > When I try the following
> > >
> > > . Echo %{ $[vp.width] - 100 }%
> > >
> > > in FvwmConsolde, it does work and I get
> > >
> > > [FVWM][Echo]: 1300
> > >
> > > as the output.
> > >
> > > But if I put that command in my configuration file, it
> > > does not work when I restart Fvwm.
>
> Any explanation for this behaviour (works in FvwmConsole only)?

When you run it in FvwmConsole, FvwmPerl is already running,
when you use "." function in .fvwm2rc, it is not yet.

> > Make sure FvwmPerl is running when you use "." function.
>
> FvwmPerl is running:
>
> $ ps x | grep FvwmPerl
> 25356 vc/1 S 0:00 /usr/bin/perl -w /usr/lib/fvwm/2.5.7/FvwmPerl 7 4 none 0 8

It's running when you issue "ps", but not when you SendToModule.
Bad timing or command order.

> > Use ModuleSynchronous, not Module command as suggested in the man page.
>
> Using ModuleSynchronous now:
>
> AddToFunc StartFunction
> + I ModuleSynchronous FvwmPerl

You may use SendToModule in StartFunction or InitFunction. If you want to
use in in the top level, i.e. before StartFunction is even callled, then
you should have "ModuleSynchronous FvwmPerl" as the first command in
your .fvwm2rc.

Nothing FvwmPerl specific, any module with SendToModule would behave
similarly.

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 Sun Sep 14 2003 - 01:26:44 BST

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