Am Sonntag, 29. März 2015 um 23:07:35, schrieb Kornel Benko <kor...@lyx.org> > This is a recipe to observe creation of files in lyx-source > > 1.) copy {lyx-source}/lib/doc/Math.lyx to a local directory, say ~/lyx/test/. > This is not needed, but shows that the behaviour does not depend on > the path of Math.lyx > 2.) use your lyx from the build directory to open the file > 3.) File->Export->LaTeX(LuaLaTeX) > > Now go to the lyx-source > # git status > > You see many untracked .pdf files like e.g. > lib/images/math-macro-remove-greedy-param.pdf > > Second scenario with installed lyx. Make sure, the lyx system dirs are not > writeable by you > > 2.) open the file > 3.) try the export. > Now you are facing a dialog saying some file could not be copied. > Click OK. > Next dialog pops up. > This goes on for 43 files. >
Apparently nobody seems interested. I tried to hunt it down with strace. For each created pdf file there is about 3000 lines trace. Too big to send, but some interesting lines are there, like 8951 open("/usr/src/lyx/lyx-git/lib/images/qt_temp.wv8939", O_RDWR|O_CREAT|O_EXCL|O_CLOEXEC, 0600) = 12 ... 8951 rename("/usr/src/lyx/lyx-git/lib/images/qt_temp.wv8939", "/usr/src/lyx/lyx-git/lib/images/math-macro-add-greedy-optional-param.pdf") = 0 ... 8951 chmod("/usr/src/lyx/lyx-git/lib/images/math-macro-add-greedy-optional-param.pdf", 0600) = 0 Looks like use of qt temporary files in lyx source. OK, try to call lyx -dbg files, to hunt the messages in src/support/{TempFile,FileName,filetools}.cpp . so here it is: support/FileName.cpp (690): creating path '/usr/src/lyx/lyx-git/lib/images'. support/FileName.cpp (590): Checksumming "/tmp/lyx_tmpdir.jloUpnFT9257/lyx_tmpbuf0/42_usr_src_lyx_lyx-git_lib_images_math-macro-add-greedy-optional-param.pdf" 2022594892 lasted 1 ms. support/FileName.cpp (230): Copying /usr/src/lyx/lyx-git/lib/images/math-macro-add-greedy-optional-param.pdf keep symlink: 0 support/FileName.cpp (590): Checksumming "/tmp/lyx_tmpdir.jloUpnFT9257/lyx_tmpbuf0/Math.tex" 3063457583 lasted 14 ms. Kornel
signature.asc
Description: This is a digitally signed message part.