Byron / trash-rs

A Rust library for moving files to the Recycle Bin
MIT License
170 stars 28 forks source link

Error on Universal Blue COSMIC image (Fedora 40 Atomic) #112

Closed sungsphinx closed 2 months ago

sungsphinx commented 3 months ago

When using COSMIC Files, I get this error:

Delete {
  paths: [
    "/var/home/user/test",
  ],
}
Error during a `trash` operation: FileSystem { path: "/var/
home/.Trash-1000", source: Os { code: 13, kind: PermissionDenied,
message: "Permission denied" } }

Using trashy with the trash-rs version set to 5.0.0 (it still happens with versions below), I get the same error:

error: Error during a `trash` operation: FileSystem { path: "/var/home/.Trash-1000", source: Os { code: 13, kind: PermissionDenied, message: "Permission denied" } }

I am using the latest Universal Blue cosmic-base-40 image, gio trash <FILE> works so it is likely an issue with this crate.