You are not logged in.

#1 2025-10-12 19:42:37

ThreeMonkeys
Member
Registered: 2015-07-10
Posts: 16

mount option x-gvfs-trash for BTRFS subvolume: how to make it work?

Hi!

I'm mounting a BTRFS subvolume with x-gvfs-trash (according to this discussion on GNOME forge, but I can't trash any file in the mounted directory with Nautilus, I can only definitely delete the file.

Here is the fstab rule:

# /dev/mapper/partition-root UUID=XXYYZZ /home/login/sync btrfs defaults,rw,noatime,nodiratime,compress=zstd:3,ssd,space_cache=v2,x-gvfs-hide,x-gvfs-trash,subvolid=274,subvol=/home-sync 0 0

I created the trash directories (my account UID is 1000):

> tree /home/login/sync/.Trash-1000/
/home/login/sync/.Trash-1000/
├── expunged
├── files
└── info

Same with gio:

> touch /home/login/sync/test.txt
> gio trash /home/login/sync/test.txt
gio: file:///home/login/sync/test.txt: Trashing on system internal mounts is not supported

Do you know how I could make it work?

Offline

Board footer

Powered by FluxBB