| Summary: | Trash not working with systemd-automount (possible regression) | ||
|---|---|---|---|
| Product: | [Frameworks and Libraries] frameworks-kio | Reporter: | Arnab Bose <hirak99> |
| Component: | Trash | Assignee: | KIO Bugs <kio-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | bnerickson87, kde, kdedev, kdelibs-bugs-null, nate, oliver.schramm97, patrickgianelli, s+kde, sitter, voidpointertonull+bugskdeorg |
| Priority: | NOR | Keywords: | regression |
| Version First Reported In: | 6.24.0 | ||
| Target Milestone: | --- | ||
| Platform: | Arch Linux | ||
| OS: | Linux | ||
| See Also: |
https://bugs.kde.org/show_bug.cgi?id=517795 https://bugs.kde.org/show_bug.cgi?id=515582 |
||
| Latest Commit: | https://invent.kde.org/frameworks/kio/-/commit/90539e742a1fbc89702645d0ebf372a7e534357b | Version Fixed/Implemented In: | 6.27 |
| Sentry Crash Report: | |||
|
Description
Arnab Bose
2026-03-22 19:06:33 UTC
To clarify, it used to work with ext4 and xfs. I do not recall specifically if it worked for btrfs. Now it no longer works for ext4, xfs, or btrfs when auto mounted. Moving to kio, where the trash worker lives. I can pile on to this to confirm it's not working for me either. The error I get when trying to delete is: `kf.kio.workers.trash: Creating trash for "/" failed - no permission?` This is a SMB mount, so it appears that autofs trash is just broken as a whole now. Dolphin version: 25.12.3 KDE Plasma Version: 6.6.3 KDE Frameworks Version: 6.24.0 Qt Version: 6.11.0 Kernel Version: 6.19.10-1-cachyos (64-bit) (In reply to Patrick Gianelli from comment #3) > I can pile on to this to confirm it's not working for me either. The error I > get when trying to delete is: > > `kf.kio.workers.trash: Creating trash for "/" failed - no permission?` > > This is a SMB mount, so it appears that autofs trash is just broken as a > whole now. > > Dolphin version: 25.12.3 > KDE Plasma Version: 6.6.3 > KDE Frameworks Version: 6.24.0 > Qt Version: 6.11.0 > Kernel Version: 6.19.10-1-cachyos (64-bit) Potentially this change is at fault: https://invent.kde.org/frameworks/kio/-/commit/5e98d7d0fe8a2b0c80ed450193ffcbd2c95378d6 It *might* explain why KIO is trying to make a .trash folder at root instead of at /mnt/Folder/.trash-1000 A possibly relevant merge request was started @ https://invent.kde.org/frameworks/kio/-/merge_requests/2253 Git commit 90539e742a1fbc89702645d0ebf372a7e534357b by Méven Car, on behalf of Oliver Schramm. Committed on 04/06/2026 at 08:17. Pushed by meven into branch 'master'. kmountpoint: Iterate mountpoint backwards to handle systemd-automount When using systedm-automount it results in two entries in mountinfo for the same path. autofs and the actual fs. The actual fs appears AFTER the automount, which is why using backward iterators in libmount is usually the default. Because autofs is a pseudofs for which trash is not available, we want to rather have the actual fs. Also, this way findByPath will return the expected result. M +1 -1 src/core/kmountpoint.cpp https://invent.kde.org/frameworks/kio/-/commit/90539e742a1fbc89702645d0ebf372a7e534357b *** Bug 517795 has been marked as a duplicate of this bug. *** |