Bug 514941

Summary: DeleteOrTrashJob should use Trash portal when inside a sandbox
Product: [Frameworks and Libraries] frameworks-kio Reporter: george fb <georgefb899>
Component: generalAssignee: KIO Bugs <kio-bugs-null>
Status: REPORTED ---    
Severity: normal CC: aleixpol, fella, kdelibs-bugs-null, nicolas.fella, sitter
Priority: NOR    
Version First Reported In: git master   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description george fb 2026-01-22 17:45:53 UTC
Currently using KIO::DeleteOrTrashJob moves the file to `~/.var/app/app_id/data/Trash/files`

Can be tested with Haruna:
1. open file
2. open playlist
3. right click file
4. click "Move File to Trash"
5. file is moved to ~/.var/app/org.kde.haruna/data/Trash/files

https://flatpak.github.io/xdg-desktop-portal/docs/doc-org.freedesktop.portal.Trash.html

Operating System: CachyOS Linux 
KDE Plasma Version: 6.5.5
KDE Frameworks Version: 6.22.0
Qt Version: 6.10.1
Kernel Version: 6.18.5-arch1-1 (64-bit)
Graphics Platform: Wayland
Comment 1 Harald Sitter 2026-01-22 18:07:41 UTC
Isn't this a KIO problem then?
Comment 2 george fb 2026-01-22 18:36:55 UTC
I don't know.
Comment 3 Nicolas Fella 2026-01-22 19:26:02 UTC
There is no trash portal backend for xdg-desktop-portal-kde to implement. This isn't a xdg-desktop-portal-kde problem, the problem is that the portal isn't used?
Comment 4 george fb 2026-01-22 20:04:50 UTC
Should I close this and open a new report for KIO?
Or move this to KIO?