>> $ ./src/lyx-qt4.exe -dbg info -geometry 800x600+100+30 >> Setting debug level to info >> Debugging `info' (General information) >> Wrong command line option `-geometry'. Exiting. >> Deleting tmp dir /tmp >> Not deleting /tmp.
> Did it actually try to delete /tmp? Just wondering if > there is a hardcoded check for *not* deleting /tmp or > something? (Or maybe it checks that the thing to be > deleted isn't a directory) Sorry for breaking the thread. Gmane doesn't appear to display these replies from one mailing list to another. Anyway, the point I'd like to make is: rather than use Georg's hardcoded "/tmp" fix, why not save the content returned by Package.C's get_temp_dir() function in an immutible store that can be compared to the value of Package::temp_dir() which starts out with get_temp_dir()'s returned value but can subsequently be overwritten by user preference. Ie, something like: class Package { string const system_temp_dir = get_temp_dir(); string temp_dir = system_temp_dir; } // Read LyXRC. Update the value of Package::temp_dir // to user preference if so desired. ... // Come to clean up prior to exiting LyX. if (Package::system_temp_dir != Package::temp_dir) // User-specified temp dir. Delete it. Capice? Angus