On Thu, 19 Feb 2009, Thomas Adam wrote:
2009/2/19 Lucio Chiappetti <lu...@lambrate.inaf.it>:
AddToFunc I StartFunction I Exec exec xterm
do you really mean "I StartFunction" instead of "InitFunction"? With an I?
I mean:
AddToFunc StartFunction I Foo
sorry, I was mislead since you typed an extra I
*here !
AddToFunc I StartFunction I Exec exec xterm
http://fvwm.lair.be/viewtopic.php?f=40&t=1505
See the aforementioned link -- then you'll understand.
Thanks, now it is perfectly clear (or thereabout). I have only one small
doubt concerning modules.
What I *had* was (my adaptation of the suse supplied configuration,
commenting out lot of stuff and adding a few of my own)
AddToFunc InitFunction
+ I Exec of one xterm
+ I Exec xsetroot with a particular colour <--
+ I Module for FvwmAuto and FvwmEvent <--
+ I Module FvwmEvent Event-FF ???
+ I Exec of all other apps (clock, firefox, pine, rxvt ...)
AddToFunc RestartFunction
+ I Exec xsetroot with a particular colour
+ I Module for FvwmAuto and FvwmEvent
AddToFunc ExitFunction
+ I Exec xsetroot
+ I Exec xsetroot
The items marked with <-- were the ones repeated in RestartFunction. I do
not know why ExitFunction called xsetroot (with NO arguments) twice.
What I've done now (and tested with a restart, not a logout) is to get rid
of RestartFunction, to get rid of the second xsetroot in ExitFunction, and
to replace InitFunction with StartFunction as follows :
AddToFunc StartFunction
+ I Test (Init) Exec of one xterm
+ I Exec xsetroot with a particular colour <--
+ I Module for FvwmAuto and FvwmEvent <--
+ I Module FvwmEvent Event-FF ???
+ I Test (Init) Exec of all other apps (clock, firefox, pine, rxvt ...)
So I do Test (Init) for all "applications" started only once in old Init.
I left unchanged the xsetroot and the two Modules (<--) previously called
also in Restart. I am unsure what to do of the other Module (marked with
???) which was previously present only in Init.
It is a module which resizes non-transient firefox windows to a fixed size
selected by me (in contrast with the fact that firefox tends to use the
latest size, and ignore x resources).
Should I use Test (Init) Module FvwmEvent Event-FF ? CAN I do it (can one
test a Module or only an Exec ?)
I've done a "ps" and looks like that all three modules get new pid's after
a restart, so I presume my current config is harmless. But I would
appreciate a confirmation.
--
Lucio Chiappetti - INAF/IASF - via Bassini 15 - I-20133 Milano (Italy)
For more info : http://www.iasf-milano.inaf.it/~lucio/personal.html
-----------------------------------------------------------------------
"Nature" on government cuts to research http://snipurl.com/4erid
"Nature" e i tagli del governo alla ricerca http://snipurl.com/4erko