send2trash
send2trash copied to clipboard
Integration with snap
When using send2trash in an app that is installed with Snap, the files land in this trash folder: ~/snap/dupliseek/current/.local/share/Trash This doesn't integrate with normal file handlers apps like thunar and nautilus. Is it possible that send2trash could be fixed to handle this.
Is it possible that send2trash could be fixed to handle this.
Using the trash portal should handle both cases flatpak/snap https://flatpak.github.io/xdg-desktop-portal/#gdbus-org.freedesktop.portal.Trash
(Sandboxed applications (Flatpak/Snap) usually don't have direct filesystem access to the Trash directory in ~/.local/share/Trash
and the $XDG_DATA_HOME
variable inside the sandbox is set to $HOME/.var/app/<application-id>/data
(for flatpak). So files are ending in the "wrong" trashcan)