On Sat, Dec 19, 2009 at 07:04:09PM -0500, Ben M. wrote:

> On Sat, Dec 19, 2009 at 10:23 AM, rgheck <rgh...@bobjweil.com> wrote:
> >>    LYXSYSDIRS = ["/usr/share/lyx", "/usr/local/share/lyx",
> >> "/opt/share/lyx"]
> >>
> > This will be hard to get right, since you can install LyX anywhere.
> >
> >>    LYXBASEDIR = [".lyx" + version_suffix]
> >>
> > This again will be hard to get right. (For trunk, I use
> > ~/dev/lyxdirs/lyxsvn/.) Perhaps the script should take optional arguments
> > for these. (Argument processing is done with getopt.)
> 
> Yes, there must be a better way.  For instance, I noticed that an
> executed command inherits its environment from LyX, e.g. "PATH
> prefix."  Why not create environment variables for all the relevant
> paths?

This is a possibility. The script could be modified such that to put
ahead the paths if the relevant evironment variables exist. Thus, you
simply have to set those variables before launching lyx.

-- 
Enrico

Reply via email to