Bug 414519

Summary: Automatic cleanup isn't triggering
Product: [Frameworks and Libraries] frameworks-kio Reporter: Philippe ROUBACH <philippe.roubach>
Component: TrashAssignee: David Faure <faure>
Status: REPORTED ---    
Severity: normal CC: kdelibs-bugs, kfm-devel, nate
Priority: NOR    
Version: 5.87.0   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=205854
Latest Commit: Version Fixed In:

Description Philippe ROUBACH 2019-11-26 09:17:09 UTC
SUMMARY

trashcan, bad management of size

STEPS TO REPRODUCE
1. i choose to delete the oldest files when trashcan size > 10 % of the home partition (883 GB)
2. i go to trashcan management
3. 

OBSERVED RESULT

trashcan size is 444 GB

a side effect : my home partition is full

EXPECTED RESULT

trashcan size < 88,3 GB

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 5.13.3
KDE Frameworks Version: 5.64.0
Qt Version: 5.13.1

ADDITIONAL INFORMATIO

hypothesis:

i set the maximum size for trashcan to 10 % then trashcan management displays "10,000 % (88,29 GB)"

"88,29 GB" is good

"10,000 %" for french syntax is equal to "10 %". This is good.

But if "10,000 %" is interpreted with English syntax this is equal to "ten thousand %" ! This is not good.
Comment 1 Nate Graham 2019-11-26 16:33:24 UTC
> "10,000 %" for french syntax is equal to "10 %". This is good.
> 
> But if "10,000 %" is interpreted with English syntax this is equal to "ten
> thousand %" ! This is not good.
The number is localized, so it shows up as 100.000% in English, which is fine.


Possibly Bug 205854. Does automatic cleanup get triggered if you put one more item in the trash?
Comment 2 Philippe ROUBACH 2019-11-26 17:35:16 UTC
>> Does automatic cleanup get triggered if you put one more item in the trash?

no
Comment 3 Nate Graham 2019-11-26 17:40:17 UTC
Thanks.
Comment 4 Philippe ROUBACH 2021-11-01 09:06:18 UTC
Today an old disappeared bug reappeared !

trash clean up based on the size 10 % is not executed.

Then I add "delete 7 days old files" then the trash was cleaned.

openSUSE Argon Leap 15.3
kde gear 21.08.2
plasma : 5.23.2
kde frameworks : 5.87.0
Qt : 5.15.2