When delete photos the files in /tmp are not deleted
Brought to you by:
ra28145
I have a /tmp folder of 4 gb usually and I scan at high resolution but when I delete a photo from gscan2pdf the png file or pnm is stille there.
So I to be sure that the program don't crash on saving because the Ram is full I do this:
If I remove the folder while the program is open this crash because cannot find the folder.
I saw also that if I scan too many images the saving doesn't work and there is no log or feedback about it.
The files belonging to deleted pages should be kept for one step in case the user undoes the operation.
I see that they hang around for longer than that, so this is certainly a bug.
Maybe adding a maximum number of undo or an alert when /tmp is full can avoid crashes.
You should already get a warning. Please give me a log file where you run out of tmp space and get no warning.
You are right, I get
I've implemented this for the next release. Would you like to test a patch?
I saw that on closing the folder in tmp are removed but not when I delete them with the latest release on debian sid.