send2trash icon indicating copy to clipboard operation
send2trash copied to clipboard

Integration with snap

Open pracedru opened this issue 4 years ago • 1 comments

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.

pracedru avatar Jul 21 '20 19:07 pracedru

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)

bbhtt avatar Jul 15 '23 11:07 bbhtt