Closed Tokariew closed 8 months ago
✗ trash-put --verbose README.md
trash-put: volume of file: /home
trash-put: trying trash dir: /home/tokariew/.local/share/Trash from volume: /home/tokariew/.local
trash-put: won't use trash dir ~/.local/share/Trash because its volume (/home/tokariew/.local) in a different volume than README.md (/home)
trash-put: found unusable .Trash dir (should be a dir): /home/.Trash
trash-put: trash directory is not secure: /home/.Trash/1000
trash-put: trying trash dir: /home/.Trash-1000 from volume: /home
trash-put: failed to trash README.md in /home/.Trash-1000, because: [Errno 13] Permission denied: '/home/.Trash-1000'
trash-put: cannot trash regular file 'README.md'
Thank for your reporting. At the moment BTRFS is not supported because I don't know how it works and, right now I don't have free time to investigate how trash-cli should adapt to interact with it.
You can try the untested and hidden --home-fallback feature that I mentioned here: https://github.com/andreafrancia/trash-cli/issues/300#issuecomment-1786065185
Describe the bug When trash folder is on btrfs subvolume diffrent than home i can't trash any file from my home folder
trash-cli version Output of: trash-put --version 0.23.2.13.2
Are you using the latest version of trash-cli? Yes
Have you tried if the bug is present in the latest version of trash-cli? Yes
Operating system:
To Reproduce
trash-put: cannot trash regular file foo
Expected behavior
I can trash files from any subvolume on my home partition
Volumes detail
➜ sudo btrfs subvolume list . | grep --color=auto -v snapshot ID 256 gen 156594 top level 5 path home ID 257 gen 156593 top level 5 path root ID 258 gen 155393 top level 257 path root/var/lib/portables ID 259 gen 155393 top level 257 path root/var/lib/machines ID 260 gen 156593 top level 256 path tokariew/Games ID 261 gen 156461 top level 256 path tokariew/tmp ID 262 gen 156594 top level 256 path tokariew/.local ID 263 gen 156594 top level 256 path tokariew/.config ID 264 gen 156586 top level 256 path tokariew/.cache ID 275 gen 156461 top level 262 path tokariew/.local/share/libvirt/images
maybe related too: https://github.com/andreafrancia/trash-cli/issues/247
Sorry, for create nerly empty issue, and then editing, little keyboard error