namespace {
-/// Don't try to remove the temporary directory if it has not been created
-bool remove_tmpdir = false;
-
// Filled with the command line arguments "foo" of "-sysdir foo" or
// "-userdir foo".
string cl_system_support;
pimpl_->buffer_list_.closeAll();
// do any other cleanup procedures now
- if (remove_tmpdir) {
+ if (package().temp_dir() != package().system_temp_dir()) {
lyxerr[Debug::INFO] << "Deleting tmp dir "
<< package().temp_dir() << endl;
// trying again but simply exit.
return false;
}
- remove_tmpdir = true;
if (lyxerr.debugging(Debug::INIT)) {
lyxerr << "LyX tmp dir: `" << package().temp_dir() << '\'' << endl;