Kayvan A. Sylvan <[EMAIL PROTECTED]> writes:

> 
> This is what I do:
> 
> 1) Open lyx.
> 2) Open->Recent files->some document
> 3) View->PDF (PDF LaTeX)
> 4) Quit Acrobar Reader
> 5) File->Exit
> 
> At this point, I get two dialog boxes.
> 
> The first:
> 
>   Could not remove the temporary directory /tmp/lyx_tmpdirxxxxx/lyx_tmpbuf0

Could you check what files are in this directory between 3) and 4) ?

It looks as if some external process isn't quite finished  with whatever it's
doing in lyx_tmpbuf0 (maybe lyxpreview?)

> 
> The second is about the enclosing directory:
> 
>   Could not remove the temporary directory /tmp/lyx_tmpdirxxxxx
> 

Naturally. But it would be nicer if there was just one message box.

> Now, I just did some experiments and the results are interesting. If I wait
> a few seconds and then I close lyx, then all is well.
> 
> If I close lyx immediately and get the first dialog box and wait a few
> seconds before hitting the OK button, I do not get the second dailog
> box... Furthermore, no temp directory is left behind!

So the second box comes from a recursive delete of the lyx_tmpdirxxxxxx.
Once there are no active processes and locked files in lyx_tmpbuf0 any more
it succeeds.

Also note that if Acrobat's PDF file is located in lyx_tmpbuf0 and Acrobat is
still active, the file will be locked and deletion of the directory will fail.
So the question is, when and how fast iAcrobat is unlocking its files after
they are closed.
Does that sound consistent?

Cheers
/Andreas

Reply via email to