Byron/trash-rs

trash/restore across bind mounts

开放

#146 创建于 2026年8月20日

 (1 条评论) (0 个反应) (0 位负责人)Rust (40 个派生)auto 404
help wanted

仓库指标

星标
 (247 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

When running nix impermanence with a btrfs filesystem the trash bin falls back on individual .Trash-$UID dirs instead of using the $HOME/.local/share/Trash. This is due do the bind mounts created by impermanence, even tho they all share the same underlying filesystem and origin from the same btrfs subvolume.

I know this problem origins in the FreeDesktop trash-spec and that most of the trash bin adhere to that spec.

Tools like rmw already solved this and allow trashing across bind mounts (see theimpossibleastronaut/rmw#552).

The perfect solution would be the possibility to trash to and restore from the $HOME/.local/share/Trash dir without falling back on individual trash dirs on each bind mount.

贡献者指南