Bug 329155

Summary: tooltip produces much load/file copies on /tmp when used in trash:/
Product: [Frameworks and Libraries] kio Reporter: suse
Component: thumbnailAssignee: Unassigned bugs mailing-list <unassigned-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: frank78ac, nate
Priority: NOR    
Version: 4.11.3   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:

Description suse 2013-12-23 14:19:05 UTC
using the tooltip (inside trash:/ !) on a folder, it will copy that folder to /tmp.

Problems:
1. These folders are not deleted automatically
2. if the folder contains big files (1 GB of DVB-S video recordings...) the /tmp folder will soon be VERY big and it will need plenty of seconds for the copy operations...


Reproducible: Always

Steps to Reproduce:
settings->configure dolphin...->general->show tooltip

1. trash a folder with some files in it. (the bigger the files, the better the effect: try 1GB)
2. go to trash:/  (essentially for this bug report)
3. move mouse over the trashed folder until tooltip pops up (repeat this step for a bigger effect)
4. go to /tmp/kde-<user>
5. you will see the trashed folder as "dolphin<letters&numbers>.tmp" and it contains are the files.



Expected Results:  
Tooltip should never copy folders or files to /tmp.
But it did when used in trash:/
Comment 1 Frank Reininghaus 2013-12-28 14:21:59 UTC
Thanks for the bug report. Copying the file to /tmp is not done by Dolphin itself, but by KIO::PreviewJob, the class that generates the preview image in the tool tip. You can see that by going to trash:/ and then enabling previews - the folder will be copied to /tmp even if no tool tip is shown at all.

I'm not sure though how easy it is to change this behavior.
Comment 2 Nate Graham 2018-06-29 21:04:23 UTC
I can see that they are now (with KDE Frameworks 5.47) indeed removed automatically from /tmp when you stop hovering over them. It's really quite neat.