In working on the XHTML stuff, in particular on graphics and math output, I have started to wonder whether it is a good idea for the cloned buffer to share a temporary directory with the original buffer. E.g., in the graphics output routines (and this is true for LaTeX output, too), we copy lots of things into the temporary directory and may manipulate them. Is there a possibility of some kind of conflict here with what the original buffer is doing? Or even some weird race condition?

The downside to creating a new tempdir for the cloned buffer is that you would then have to copy things into it, etc, and then do it all again the next time. Though perhaps we could create a directory like /tmp/lyx_tmpdir.M1402/lyx_tmpbuf0/clone/, and let that always be the temporary directory for clones.

rh

Reply via email to