Jean-Marc Lasgouttes wrote:

>>>>>> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes:
> 
> Angus> Ta-da! Simple solution to a simple problem. In fact,
> analogous Angus> to the LYX_USERDIR_14x environment variable, could
> we not get Angus> LyX itself to set a LYX_14X environment variable?
> Thereafter, Angus> we could simply ask lyx to supply us with the
> paths. Eg
> 
> In the case of lyxpreview2bitmap, which only pretends to use the
> converter machinery, there is no much harm in setting directly the
> LATEX variable, is it? (or should I say ``is there?''?)

You should say ``is there''.

and I agree, there is no harm in setting LATEX directly. My reading 
of 'test' suggests that this is portable and pretty elegant:

test $LATEX || LATEX=latex

> Angus> $ lyx --paths LyX binary dir: /usr/local/bin LyX files dir:
> Angus> /usr/local/share/lyx-1.3.3cvs
> 
> Relaunchng lyx is very expensive.

Indeed, but I do like your suggestion about environment variables. 
Why do we have only LYX_USERDIR_14X? Why not also LYX_SYSTEMDIR_14X, 
LYX_BUILD_LYXDIR_14X that can be set by a running LyX? The point is 
that these scripts are usually used by LyX itself, so providing them 
with this information is hardly controversial...

-- 
Angus

Reply via email to