[Xfce-bugs] [Bug 15922] trash functionality does not work outside of home directory
bugzilla-daemon at xfce.org
bugzilla-daemon at xfce.org
Tue Sep 3 23:03:15 CEST 2019
https://bugzilla.xfce.org/show_bug.cgi?id=15922
--- Comment #2 from jw.hendy at gmail.com ---
I wondered about btrfs as well. There was another arch post discussing this
possibility:
- https://bbs.archlinux.org/viewtopic.php?id=241785
Re. other behavior:
- Thunar and Nautilus (just tested) have the same behavior: popup "Do you
really want to delete"
- pcmanfm asks if I want to delete or trash, and when I say trash it says "Some
files cannot be moved to trash can because the underlying file systems don't
support this operation. Do you want to delete them instead?"
- dolphin trashes a file from /mnt/vault to ~/.local/share/Trash/files
$ gio trash /mnt/vault/foo.txt
gio: file:///mnt/vault/foo.txt: Trashing on system internal mounts is not
supported
Googling the gio error triggered another set of breadcrumbs:
- above links to this arch bug: https://bugs.archlinux.org/task/60137
- and this gnome commit:
https://gitlab.gnome.org/GNOME/glib/commit/d1eaf72c001279aa15a2135a0749ef864c8edb42
I'm not exactly sure why this happens, though. Both /mnt/vault and
/home/jwhendy are subvols of the same btrfs volume.
Ahhh, now I see. Here's the function, g_unix_is_mount_path_system_internal(),
they call to see if it's "system internal":
- https://gitlab.gnome.org/GNOME/glib/blob/master/gio/gunixmounts.c#L223
And that contains a hard-coded list of mount points, which is described to:
"""
* Determines if @mount_path is considered an implementation of the
* OS. This is primarily used for hiding mountable and mounted volumes
* that only are used in the OS and has little to no relevance to the
* casual user.
"""
I guess /mnt and /media are both "of little to no relevance," but I thought
these were pretty standard mount points.
That said, I just unmounted /mnt/vault and remounted the subvol to ~/vault
(after deleting symlink) and I get the same error. I don't know what
differentiates ~ and vault with respect to how glib is checking.
$ mount
/dev/mapper/luks-dc2c470e-ec77-43df-bbe8-110c678785c2 on /home/jwhendy type
btrfs
(rw,relatime,compress=lzo,ssd,discard,space_cache,subvolid=267,subvol=/jwhendy)
/dev/mapper/luks-dc2c470e-ec77-43df-bbe8-110c678785c2 on /home/jwhendy/vault
type btrfs
(rw,relatime,compress=lzo,ssd,discard,space_cache,subvolid=268,subvol=/vault)
Everything is the same except the subvol?
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Xfce-bugs
mailing list