Bug 479570

Summary: Use Trash XDG Portal to delete files
Product: [Applications] gwenview Reporter: Timothée Ravier <tim>
Component: generalAssignee: Gwenview Bugs <gwenview-bugs-null>
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version: 23.08.4   
Target Milestone: ---   
Platform: Flatpak   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Timothée Ravier 2024-01-09 11:02:24 UTC
The Gwenview Flatpak is currently explicitly granted access to the Trash (https://github.com/flathub/org.kde.gwenview/blob/master/org.kde.gwenview.json#L11).

To better integrate with Flatpak and Portals in general, we should use the XDG Trash Portal instead (https://flatpak.github.io/xdg-desktop-portal/docs/doc-org.freedesktop.portal.Trash.html).

See: https://github.com/flathub/org.kde.gwenview/issues/118

STEPS TO REPRODUCE
1. Use the Gwenview Flatpak from Flathub
2. Remove access to Trash via Flatseal
3. Trash a file

OBSERVED RESULT

The file is not sent to the global trash (https://github.com/flathub/org.kde.gwenview/pull/17).

EXPECTED RESULT

The file is sent to the global trash.

SOFTWARE/OS VERSIONS
Latest Flatpak version from Flathub