Vincent van Ravesteijn wrote: > commit 762c4eca5734b4d504ab28308a10d725a4790d5c > Author: Vincent van Ravesteijn <v...@lyx.org> > Date: Sun May 19 14:07:14 2013 +0200 > > Increase the uniqueness of the temp directories > > Now, the temporary directories are composed of the PID + 8 random > characters. This used to be the PID + 2 random characters. > > See also 327f7ed90dbcaad92511b962a8d1d14b46ef552a. > > diff --git a/src/support/FileName.cpp b/src/support/FileName.cpp > index fa8cdac..f048930 100644 > --- a/src/support/FileName.cpp > +++ b/src/support/FileName.cpp > @@ -443,7 +443,7 @@ static string createTempFile(QString const & mask) > // same file again. To make this safe the QTemporaryFile object > // needs to be kept for the whole life time of the temp file > name. > // This can be achieved by using the TempFile class. > - QTemporaryFile qt_tmp(mask); > + QTemporaryFile qt_tmp(mask + ".XXXXXXXXXXXX"); > if (qt_tmp.open()) { > string const temp_file = fromqstr(qt_tmp.fileName()); > LYXERR(Debug::FILES, "Temporary file `" << temp_file << "' > created.");
You mean that QTemporaryFile doesn't find unused file name from time to time? It shouldn't be according to qt docs. Pavel