<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>469598</bug_id>
          
          <creation_ts>2023-05-10 19:34:42 +0000</creation_ts>
          <short_desc>The &quot;Delete Oldest Files From Trash&quot; option does nothing</short_desc>
          <delta_ts>2026-08-09 07:24:58 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>Frameworks and Libraries</classification>
          <product>frameworks-kio</product>
          <component>Trash</component>
          <version>6.10.0</version>
          <rep_platform>Arch Linux</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.kde.org/show_bug.cgi?id=504785</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Antti Savolainen">antti.savo</reporter>
          <assigned_to name="Antti Savolainen">antti.savo</assigned_to>
          <cc>kdelibs-bugs-null</cc>
    
    <cc>nate</cc>
    
    <cc>unsaved4197+6p4t3t5q</cc>
    
    <cc>voidpointertonull+bugskdeorg</cc>
    
    <cc>zhangpan</cc>
          
          <cf_commitlink>https://invent.kde.org/network/kio-extras/-/commit/8344b3cc7c455c9cd98012b13e3506a52571d9bb</cf_commitlink>
          <cf_versionfixedin>6.19</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2229372</commentid>
    <comment_count>0</comment_count>
    <who name="Antti Savolainen">antti.savo</who>
    <bug_when>2023-05-10 19:34:42 +0000</bug_when>
    <thetext>Demonstrative video: https://youtu.be/LXIqVJu61v4

SUMMARY
All of the options only show a warning and require a manual intervention by emptying the trash. This also applies to the &quot;Delete Biggest Files From Trash&quot; option.

STEPS TO REPRODUCE
1. Set &quot;Delete Oldest Files From Trash&quot; option for trash
2. Try to trash files past the trash size limit

OBSERVED RESULT
A warning is shown

EXPECTED RESULT
The olders/biggest file should be deleted from trash and the new file put into trash without a warning

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Arch Linux
(available in About System)
KDE Plasma Version: 5.27.5
KDE Frameworks Version: 5.105.0
Qt Version: 5.15.9</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2457413</commentid>
    <comment_count>1</comment_count>
    <who name="Bug Janitor Service">bug-janitor</who>
    <bug_when>2025-09-25 09:23:35 +0000</bug_when>
    <thetext>A possibly relevant merge request was started @ https://invent.kde.org/frameworks/kio/-/merge_requests/2006</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2457726</commentid>
    <comment_count>2</comment_count>
    <who name="Pan Zhang">zhangpan</who>
    <bug_when>2025-09-26 01:04:11 +0000</bug_when>
    <thetext>I reproduced this issue on the master branch, and I’ve already fixed it and submitted a merge request.
MR：https://invent.kde.org/frameworks/kio/-/merge_requests/2006</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2458192</commentid>
    <comment_count>3</comment_count>
    <who name="Méven">meven</who>
    <bug_when>2025-09-28 12:17:08 +0000</bug_when>
    <thetext>Git commit eb85a1ee051565a79b63b5b1dc65a8300d9080a6 by Méven Car, on behalf of Pan Zhang.
Committed on 28/09/2025 at 12:17.
Pushed by meven into branch &apos;master&apos;.

trashimpl: Fix size limit check to allow automatic deletion

Previously adaptTrashSize() rejected new files whenever &apos;partitionSize + additionalSize&apos; exceeded the limit, even if removing older/bigger files could make enough room. Now we only reject when the new file itself is larger than the maximum allowed trash size, so the cleanup policy (delete oldest / biggest) works as intended.

M  +4    -3    src/kioworkers/trash/trashimpl.cpp

https://invent.kde.org/frameworks/kio/-/commit/eb85a1ee051565a79b63b5b1dc65a8300d9080a6</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2468591</commentid>
    <comment_count>4</comment_count>
    <who name="Antti Savolainen">antti.savo</who>
    <bug_when>2025-11-07 06:10:53 +0000</bug_when>
    <thetext>The setting still does nothing.
Demonstrative video: https://youtu.be/MHMXGjJSh0A

As far as I understand it, this was supposed to be fixed in Frameworks 6.19

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.5.1
KDE Frameworks Version: 6.19.0
Qt Version: 6.10.0
Kernel Version: 6.17.7-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 4 × Intel® Core™ i7-7600U CPU @ 2.80GHz
Memory: 24 GiB of RAM (23.2 GiB usable)
Graphics Processor: Intel® HD Graphics 620
Manufacturer: LENOVO
Product Name: 20HG0003SG
System Version: ThinkPad T470s</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2536113</commentid>
    <comment_count>5</comment_count>
    <who name="Antti Savolainen">antti.savo</who>
    <bug_when>2026-08-03 05:28:06 +0000</bug_when>
    <thetext>The root issue seems to be that I have multiple drives. For some reason ktrashrc only contains settings for one of the external drives

$ cat ~/.config/ktrashrc
[/mnt/WD1TB/.Trash-1000]
Days=7
LimitReachedAction=0
Percent=2
UseSizeLimit=true
UseTimeLimit=false</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2536133</commentid>
    <comment_count>6</comment_count>
    <who name="Antti Savolainen">antti.savo</who>
    <bug_when>2026-08-03 08:09:46 +0000</bug_when>
    <thetext>https://invent.kde.org/network/kio-extras/-/merge_requests/543</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2536646</commentid>
    <comment_count>7</comment_count>
    <who name="Antti Savolainen">antti.savo</who>
    <bug_when>2026-08-05 00:10:15 +0000</bug_when>
    <thetext>Git commit be77f51bfb2ffc9a5bc6693f25c55e5b845bb5ed by Antti Savolainen.
Committed on 05/08/2026 at 00:01.
Pushed by asavolainen into branch &apos;master&apos;.

kcmtrash.cpp: fix trash settings not detecting multiple mounts

M  +2    -2    kcms/trash/kcmtrash.cpp
M  +1    -1    kcms/trash/kcmtrash.h

https://invent.kde.org/network/kio-extras/-/commit/be77f51bfb2ffc9a5bc6693f25c55e5b845bb5ed</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2537560</commentid>
    <comment_count>8</comment_count>
    <who name="Méven">meven</who>
    <bug_when>2026-08-09 07:24:58 +0000</bug_when>
    <thetext>Git commit 8344b3cc7c455c9cd98012b13e3506a52571d9bb by Méven Car.
Committed on 09/08/2026 at 07:16.
Pushed by meven into branch &apos;release/26.08&apos;.

kcmtrash.cpp: fix trash settings not detecting multiple mounts


(cherry picked from commit be77f51bfb2ffc9a5bc6693f25c55e5b845bb5ed)

Co-authored-by: Antti Savolainen &lt;antti.savo@gmail.com&gt;

M  +2    -2    kcms/trash/kcmtrash.cpp
M  +1    -1    kcms/trash/kcmtrash.h

https://invent.kde.org/network/kio-extras/-/commit/8344b3cc7c455c9cd98012b13e3506a52571d9bb</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>