Byron/trash-rs

Use Desktop Portal for Linux Sandbox Compatibility

Open

#140 opened on Oct 18, 2025

 (3 comments) (4 reactions) (0 assignees)Rust (40 forks)auto 404
help wanted

Repository metrics

Stars
 (247 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

It seems like at the moment, this crate doesn't use the xdg-desktop-portal API for trashing files. Sadly, this means that it doesn't behave correctly in sandboxed environments like e.g. Flatpak packages.

It would be great if that could be changed, and I think it would benefit the code in general, as that would be the preferred way to ensure that any usual Linux cases are handled properly. More on this can be read here, where the reasons are explained.

Contributor guide