Bug 507200

Summary: After deleting a file via Qt app, the Trash remains empty until Dolphin is restarted
Product: [Applications] dolphin Reporter: Patrick Silva <bugseforuns>
Component: generalAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: REPORTED ---    
Severity: normal CC: kfm-devel
Priority: NOR    
Version First Reported In: 25.04.3   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Patrick Silva 2025-07-18 15:39:37 UTC
STEPS TO REPRODUCE
1. open Dolphin and make sure Trash is empty
2. install Strawberry music player and open it
3. click on "Tools" menu on top and choose "Settings"
4. click on "Playlist" in the left side
5. check "Enable delete files in the right click context menu" and click on "OK" button
6. add 1 audio file to Strawberry playlist
7. right-click on the added audio file and choose "Delete from disk..."
8. confirm file deletion
9. go back to Dolphin: according to Trash icon, Trash remains empty (this is the bug)
10. restart Dolphin: now Trash is no longer empty, according to its icon

OBSERVED RESULT
After deleting a file via Qt app, the Trash remains empty until Dolphin is restarted

EXPECTED RESULT
Trash is not empty immediately after the step 8

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.4.3
KDE Frameworks Version: 6.16.0
Qt Version: 6.9.1
Graphics Platform: Wayland
Comment 1 Patrick Silva 2025-07-18 15:44:29 UTC
Another thing: after the last step, "Empty Trash" option from the context menu of Trash icon is grayed out. However, I can empty Trash via "Empty Trash" button in the tool bar.