ITADN

Add a solution to yazi issues #2872 and #2799 in the documentation?

#291OpenWoosah 创建于 2025-09-30
W
Woosahcommented
Hi! Just saw these 2 issues here: https://github.com/sxyazi/yazi/issues/2872 https://github.com/sxyazi/yazi/issues/2799 But both are locked therefore I cannot write a comment, and I guessed this might come up again in the future... I just wanted to tell you that these have nothing to do with yazi, and that they do not need any workarounds or any extra program to be solved. I struggled for some time because I stumbled over this even without yazi but while using thunar and nautilus, too. The problem is due to using a btrfs subvolume other then `@home` while also using a gnome related setup, which means either using Gnome DE or hyprland with GTK applications, for example. It does not show up on KDE Plasma. For enabling a normal trashbin on a btrfs subvolume while using Gnome, one needs to do 2 things manually: (1) Add the option "x-gvfs-trash" to the mount entry, e.g., in `/etc/fstab`: ``` mount -o noatime,space_cache=v2,compress=zstd,ssd,discard=async,x-gvfs-trash,subvol=@EXTRA_SUBVOL /dev/nvme0n1p1 /mnt/EXTRA_SUBVOL ``` (2) Create the necessary trash directory on the subvolume: ```{bash} sudo chown -R $(id -u):$(id -u) /EXTRA_SUBVOL sudo mkdir /EXTRA_SUBVOL/.Trash sudo chmod 1777 /EXTRA_SUBVOL/.Trash sudo mkdir /EXTRA_SUBVOL/.Trash/$(id -u) sudo chown $(id -un):$(id -gn) /EXTRA_SUBVOL/.Trash/$(id -u) chmod 700 /EXTRA_SUBVOL/.Trash/$(id -u) ``` After a reboot, everything works as expected, no trash-cli or anything else needed... Best! P.S. Great work you did with yazi, loving it!
0 条评论