From my experience, calibre frequently leaves files in the temp directory, even after normal execution and exit, no crashes required.
I've resorted to creating a script file to launch calibre. The script reassigns the environment variables TMP, TEMP, and CALIBRE_TEMP_DIR to a scratch directory (CalibreTemp). After calibre exits, the script deletes the contents of CalibreTemp.
I've never seen any ill effects resulting from the deletion of these temporary files after calibre exits.
|