# Add xdg trash support \(\#12391\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/6294a3b80b512ca9721c2b2d382047f56377fd95)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 6294a3b80b512ca9721c2b2d382047f56377fd95

Requested commit: 6294a3b80b512ca9721c2b2d382047f56377fd95

Commit: 6294a3b80b512ca9721c2b2d382047f56377fd95

Tree: c7420d074db70d295852a7f30108b19ea3657aab

Author: Joshua Ferguson

Committer: GitHub

## Message

```
Add xdg trash support (#12391)

- Added support for xdg trash when deleting files on linux
- moved ashpd depency to toplevel to use it in both fs and gpui

If I need to add test, or change anything, please let me know. I tested
locally by creating and deleting a file and confirming it showed up in
my trashcan, but that probably a less than ideal method of confirming
correct behavior

Also, I could remove the delete directory function for linux, and change
the one configured for macos to compile for both macos and linux (they
are the same, the version of the function they are calling is
different).

Release Notes:

- N/A
```

## Parents

- [0f927fa6fbea51ad55eea63b455b7957ab409dc9](https://git.cafe/gitcafe/zed/commit/0f927fa6fbea51ad55eea63b455b7957ab409dc9?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/6294a3b80b512ca9721c2b2d382047f56377fd95?format=markdown)
