Bug 479570 - Use Trash XDG Portal to delete files
Summary: Use Trash XDG Portal to delete files
Status: REPORTED
Alias: None
Product: gwenview
Classification: Applications
Component: general (show other bugs)
Version: 23.08.4
Platform: Flatpak Linux
: NOR normal
Target Milestone: ---
Assignee: Gwenview Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-01-09 11:02 UTC by Timothée Ravier
Modified: 2024-01-09 11:02 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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