Skip to content

Thunar does not move deleted files to Trash on BTRFS volume with x-gvfs-trash option

Version information

  • Operating System: Arch Linux
  • Kernel Version: 6.11.5.arch1-1
  • Thunar Version: 4.18.11-2
  • GVFS Version: 1.56.1-1

Steps to reproduce

  1. Mount a BTRFS volume using the following fstab entry:
   UUID=$UUID /mnt/nasdata1 btrfs defaults,noatime,compress=zstd,x-gvfs-trash,auto 0 0
  1. Open Thunar and navigate to a file located on the mounted BTRFS volume.
  2. Attempt to delete the file.

Current behavior

When attempting to delete a file on the BTRFS volume in Thunar, the action tries to permanently remove the file rather than moving it to the Trash. This behavior occurs even though the x-gvfs-trash option is specified in the fstab entry.

Expected outcome

The file should be moved to the Trash, respecting the x-gvfs-trash mount option, rather than being permanently deleted.

Additional information

The x-gvfs-trash option is included in the fstab entry to enable Trash functionality on this BTRFS volume.

using gio:

user@host /mnt/nasdata1 $ touch asd
user@host /mnt/nasdata1 $ gio trash asd
gio: file:///mnt/nasdata1/asd: Trashing on system internal mounts is not supported

edit: I've found this bug https://gitlab.gnome.org/GNOME/glib/-/issues/1885

Adding subvol=/@data to my fstab a a workaround.

Edited by Manu Barrio Linares