Bug 504246 - Trash status does not update when something manually moves a file into ~/.local/share/Trash/files/
Summary: Trash status does not update when something manually moves a file into ~/.loc...
Status: CONFIRMED
Alias: None
Product: frameworks-kio
Classification: Frameworks and Libraries
Component: Trash (other bugs)
Version First Reported In: 6.14.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KIO Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-05-15 06:20 UTC by slartibart70
Modified: 2025-05-15 17:08 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description slartibart70 2025-05-15 06:20:38 UTC
Expected behavior:
Use dolphin, delete a file (to trash, not permanently) and the taskbar widget should appear instantly (i have set the trashcan-icon i system-tray settings to 'shown when relevant')

Problem is, other applications, especially vscode, do also soft-delete (to trash).
The vscode deleted files do land in the trash as can be easily verified with dolphin,
but the trashcan-icon in the taskbar never appears in the current kde session.

A simple logout/login fixes this (i assume trashcan then only checks for files being in trash)

I would suggest to not only listen to dolphins 'i deleted a file to trash'-events, but to implement a loop constantly checking the trash-contents esp. for the trashcan icon

---
Operating System: Fedora Linux 42
KDE Plasma Version: 6.3.80
KDE Frameworks Version: 6.15.0
Qt Version: 6.9.0
Kernel Version: 6.14.6-300.fc42.x86_64 (64-bit)
Graphics Platform: Wayland
Comment 1 Nate Graham 2025-05-15 17:08:07 UTC
So basically, an app manually moves something to ~/.local/share/Trash/files/, and then the trash doesn't notice, right?

I can confirm that, and it's not limited to just the Trash widget, either; it affects all representations of the trash systemwide.

We wouldn't want to poll for this, but we could perhaps install an inotify watch on the folder so that anything manually moved into there updates the status.