Bug 413885 - At least for some versions ~/.cache/kioexec/krun/ was not cleaned up
Summary: At least for some versions ~/.cache/kioexec/krun/ was not cleaned up
Status: REOPENED
Alias: None
Product: frameworks-kio
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR minor
Target Milestone: ---
Assignee: David Faure
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-11-06 18:27 UTC by Serhiy Zahoriya
Modified: 2021-05-28 08:13 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Serhiy Zahoriya 2019-11-06 18:27:54 UTC
SUMMARY
Found that this folder on two separate installations in use for some time is full of old files, ranging from 2017-10 to 2018-11.


STEPS TO REPRODUCE
1. Find some installation that was used with some KIO functions that involve ~/.cache/kioexec/krun/
2. Check this folder.

OBSERVED RESULT
Folder is full of old files, in some cases huge archives that are copies of already present files that take up space.

EXPECTED RESULT
Folder is always cleaned up after use. Maybe that's the case currently but is there at least a PSA to clean it up manually somewhere I missed? Is the problem known?

SOFTWARE/OS VERSIONS
unknown, at least the ones available in Kubuntu repos during 2017-2018

ADDITIONAL INFORMATION

Alternative hypothesis is that it's due to some process crashing. Can anything be done to this on KDE level instead of adding rm -rf in crontab as tmpfs is not an option for these files may be large?
Comment 1 Serhiy Zahoriya 2019-11-06 19:08:00 UTC
After asking on IRC I got a response from two users immediately with files there from 2018 and 2019
Comment 2 Serhiy Zahoriya 2019-11-06 19:35:22 UTC
kio_http_cache_cleaner was mentioned on IRC too, maybe the problem is that it's not functioning properly
Comment 3 Nate Graham 2019-11-07 14:27:53 UTC
> available in Kubuntu repos during 2017-2018
Those are some pretty old versions, and this was fixed a few months ago. :)
Comment 4 Serhiy Zahoriya 2019-11-08 05:19:47 UTC
Can you please point to the commit that fixed it? The underlying issue may have been fixed but as I see it there should've been at least some announcement for users to clean it manually if not some script to clean it automatically.
Comment 5 Nate Graham 2019-11-08 19:25:38 UTC
It's not exactly the same issue, but it should have been fixed by the fix for Bug 397742.
Comment 6 Serhiy Zahoriya 2021-02-05 02:18:27 UTC
I'm afraid it was not fixed, I've just upgraded the installation to 20.04 and had to clean up almost 20GiB of duplicates in ~/.cache/kioexec/krun/

They are still created and not cleaned up when a file from a connected Android phone is opened "directly".

Files were opened by VLC and EOG from Dolphin. I'll add exact software versions upon request.
Comment 7 Zesko 2021-03-09 20:09:19 UTC
(In reply to Serhiy Zahoriya from comment #6)
> I'm afraid it was not fixed, I've just upgraded the installation to 20.04
> and had to clean up almost 20GiB of duplicates in ~/.cache/kioexec/krun/
> 
> They are still created and not cleaned up when a file from a connected
> Android phone is opened "directly".
> 
> Files were opened by VLC and EOG from Dolphin. I'll add exact software
> versions upon request.

You can add one line "rm -rf ~/.cache/kioexec/krun/" in new script AutoCleanKio.sh
Then KDE Autostart adds this script. Done!
Comment 8 cipricus 2021-05-28 08:13:03 UTC
Kubuntu 20.04 affected by this.