[Digikam-devel] [Bug 142457] temp files not cleaned up after crashes

Gilles Caulier caulier.gilles at gmail.com
Wed Jul 9 11:11:17 BST 2008


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=142457         




------- Additional Comments From caulier.gilles gmail com  2008-07-09 12:11 -------
Andi,

About the not cleaned tmp path when crash appear, i think there is a solution... Look into undocache.cpp code. When the instance of this class is created by UndoManager, this last one created by DImgInterface, a new cache tmp folder is created on the system (typically into /var/...)

The global idea is to register somewhere this path when new UndoManager instance is created. If crash appears, at the next session, we just need to check the last cache tmp folder and if it exist, just to remove it...

But take a care: this can be more complex than a simple string to record in digikamrc file (for ex., my first idea here), because, for showfoto or digiKam, more than one instance can be started at the same time... We need to record too the process id somewhere, or something like that...

Gilles



More information about the Digikam-devel mailing list