luspi / photoqt

PhotoQt Image Viewer (mirror repo) - https://photoqt.org
GNU General Public License v2.0
49 stars 11 forks source link

[Flatpak] Move-To-Trash not working #24

Closed KAGEYAM4 closed 5 months ago

KAGEYAM4 commented 5 months ago

KDE Application Platform org.kde.Platform 6.6 system

image

Permanently-Deleting works.

Is there a way i could help/provide in more debuggable information?

This action works perfectly for aur-package.

This is what i could find - https://github.com/flatpak/flatpak/issues/1253

luspi commented 5 months ago

Thanks for reporting!

I believe you are right, that is the same problem as in the linked issue. I have some code that implements moving files to trash manually (without relying on Qt's built-in method), falling back to that for the flatpak might indeed solve the issue as PhotoQt does have access to the normal user Trash folder. Let me try that out.

luspi commented 5 months ago

Alright, I found a way to fix this behavior, though a little differently. It turns out that Gio supports trashing files from sandboxed apps properly, so for now I'm using that for flatpak builds. I'm planning on releasing the next version of PhotoQt this week, and this update will ship with that release.