Jean-Marc Lasgouttes wrote:

>>>>>> "Georg" == Georg Baum
>>>>>> <[EMAIL PROTECTED]>
>>>>>> writes:
> 
> Georg> This is the complete patch I'd like to apply. Instead of the
> Georg> script I changed the preview conversion script to change to the
> Georg> temporary directory, since that has the added benefit that the
> Georg> byprodcuts lilypond produces get deleted when LyX is closed.
> 
> Are we sure this cannot hurt some converters?

We are doing the same for non-preview conversions in converter.C (where I
added the comment), so I think it is safe. Note that without the patch the
directory where the converter is run is the one where you started LyX from,
so a converter can currently not make any assumptions about the directory
at all.

> Could we resuse the 
> originaldir flag for that? (or am I mixing things together?)

The originaldir flag  would be wrong in the case of lilypond: We do not need
to change to the directory of the source file, but to the directory where
the output should be created.


Georg

Reply via email to