On Mon, Mar 24, 2014 at 02:32:18PM +0100, Jean-Marc Lasgouttes wrote:

> OK, I finally installed LyX2.1beta2 in a windows virtual machine to
> see it by myself. The path_prefix is indeed set in lyxrc.dist, which
> is a good thing IMO. However, I find it in preferences too:
> 
> lyxrc.dist:
> \path_prefix 
> "$LyXDir\bin;$LyXDir\Python;$LyXDir\Python\Lib;$LyXDir\imagemagick;C:\Program
> Files (x86)\LyX 2.1\ghostscript\bin"
> 
> preferences:
> \path_prefix 
> "$LyXDir/bin;$LyXDir/Python;$LyXDir/Python/Lib;$LyXDir/imagemagick;C:/Program
> Files (x86)/LyX 2.1/ghostscript/bin"
> 
> If I understand correctly, the problem is that the path prefix is
> written in native form in lyxrc.dist, but in portable form in
> preferences. One of thoses choices is wrong, but I do not know which
> one...

You can use whatever form. Windows accepts both slashes and backslashes
(and even mixed forms, where both slashes and backslashes are used).
However, the backslashes in lyxrc.dist should be escaped, I think.

> What are we supposed to do for file names in the preferences file?
> Write them in portable format? If yes, then the installer is wrong
> to write the path_prefix in native form.

I would write them in portable format, such that there is no need to
escape the backslashes. Replicating in the preferences the path prefix
set in lyxrc.dist does not serve any purpose. Unless this was done
because the path prefix in lyxrc.dist was not working due to the
unescaped backslashes.

-- 
Enrico

Reply via email to