2009/2/18 PALAIA, FRANK J, ATTSI <fp2...@att.com>:
> Hello folks,
> I'm new to fvwm and have a question
>
> Currently in my .xinitrc file I have the following
>
> fvwm-themes-start &
> xterm $(XT_GEOM)+0+$(XT_Y0 $XT_ARGS &
> xterm $(XT_GEOM)+540+$(XT_Y)  $XT_ARGS &
> etc.

Several people have said rearrange that such that:

exec fvwm-themes-start

Is the last thing your ~/.xinitrc -- this is correct.

> I understand that the standard way to start applications is via
>
> AddToFunc InitFunction
> + I Exec xterm

... but what no one has said to you us that InitFunction is deprecated
over StartFunction, i.e.:

AddToFunc I StartFunction I Exec exec xterm

(You should be using FVWM 2.5.26 anyway.)

> However, I have this in a themes files which is not a executing as a
> shell script
> and, therefore, can't use env variables.

No one has either mentioned that yes you *can* access this script if
it is just a shell script -- source it before you "exec
fvwm-themes-start", i.e., in your ~/.xinitrc file:

source ~/path/to/this/mythical/file

> Any idea on how to solve my problem and still be able to use env
> variables.

This has all the benefits of then allowing you to shift the starting
up of your terminals to StartFunction in FVWM -- and although it
doesn't make such things WM-agnostic (are there other WMs besides
FVWM?) it certainly doesn't create an almightly mess, as per Jesus'
suggestion.

-- Thomas Adam

Reply via email to