You are not logged in.
Hi,
Staring recently, /mnt/.Trash/<uid> stopped working in XFCE/Thunar, only /mnt/.Trash-<uid> works. Does anybody have the problem? Permissions seem to be correct and it worked for so long time before:
drwxrwxrwt 3 root root 3488 мая 18 2019 .Trash
drwx------ 5 anton anton 3488 мая 18 2019 .Trash/1000/
$ touch .Trash/1000/file
$ rm .Trash/1000/file
Error: "Unable to find or create trash directory /mnt/.Trash/1000 to trash ..." though touch and rm file in this directory works.
Anton
Last edited by abutanaev (2021-05-01 15:27:00)
Offline
It seems that this is a thunar of gvfs problem, since trash from trash-cli package works
Offline
Rolling back thunar or gvfs doesn't help. What else could it be?
strace-ing thunar or gvfs also doesn't help.
Last edited by abutanaev (2021-05-01 15:47:32)
Offline
This is glib2 problem:
$ gio trash /mnt//QQQQ/
gio: file:///mnt/QQQQ: Unable to find or create trash directory /mnt/.Trash/1000 to trash /mnt/QQQQ
Tried to roll it back but system broke
Offline
abutanaev, there is an edit button; there is no need to repeatedly bump the thread.
This is glib2 problem:
[…]
Tried to roll it back but system broke
Downgrading only individual packages would be a partial upgrade (or rather, partial downgrade), which is unsupported, as it can lead to incompatibilities.
glib2 being a very low-level component, it's not surprising that this breaks quite a few things on your system.
About your initial issue: Have you checked the Trash specification? From a quick glance, it appears that your $topdir/.Trash is missing the sticky bit. ah, this is wrong, thanks Ropid for pointing it out to me.
Last edited by ayekat (2021-05-03 07:01:21)
Offline
[...] From a quick glance, it appears that your $topdir/.Trash is missing the sticky bit.
The sticky bit is that "t" in the "ls -l" output. That's how it shows up for directories.
EDIT:
I found out where the bug tracker for glib2 is, it's here:
https://gitlab.gnome.org/GNOME/glib/-/issues
The following bug entry seems to be about this problem with ".Trash/" not working right anymore:
https://gitlab.gnome.org/GNOME/glib/-/issues/2382
Last edited by Ropid (2021-05-02 21:43:20)
Offline
The following bug entry seems to be about this problem with ".Trash/" not working right anymore:
Yes, that's it. It's very sad that glib2 doesn't have any autotest for this trash suff.
One can switch to .Trash-<uid> as a workaround but it's not very convenient to manually add these dirs for every device and every user.
Offline