You are not logged in.

#1 2021-05-01 14:19:15

abutanaev
Member
From: Russia, Novosibirsk
Registered: 2011-03-29
Posts: 67

/mnt/.Trash/<uid> stopped working, only /mnt/.Trash-<uid> works

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

#2 2021-05-01 15:34:20

abutanaev
Member
From: Russia, Novosibirsk
Registered: 2011-03-29
Posts: 67

Re: /mnt/.Trash/<uid> stopped working, only /mnt/.Trash-<uid> works

It seems that this is a thunar of gvfs problem, since trash from trash-cli package works

Offline

#3 2021-05-01 15:46:32

abutanaev
Member
From: Russia, Novosibirsk
Registered: 2011-03-29
Posts: 67

Re: /mnt/.Trash/<uid> stopped working, only /mnt/.Trash-<uid> works

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

#4 2021-05-01 16:20:49

abutanaev
Member
From: Russia, Novosibirsk
Registered: 2011-03-29
Posts: 67

Re: /mnt/.Trash/<uid> stopped working, only /mnt/.Trash-<uid> works

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

#5 2021-05-01 20:46:52

ayekat
Member
Registered: 2011-01-17
Posts: 1,589

Re: /mnt/.Trash/<uid> stopped working, only /mnt/.Trash-<uid> works

abutanaev, there is an edit button; there is no need to repeatedly bump the thread.

abutanaev wrote:

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)


pkgshackscfgblag

Offline

#6 2021-05-02 21:36:20

Ropid
Member
Registered: 2015-03-09
Posts: 1,069

Re: /mnt/.Trash/<uid> stopped working, only /mnt/.Trash-<uid> works

ayekat wrote:

[...] 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

#7 2021-05-03 15:47:55

abutanaev
Member
From: Russia, Novosibirsk
Registered: 2011-03-29
Posts: 67

Re: /mnt/.Trash/<uid> stopped working, only /mnt/.Trash-<uid> works

The following bug entry seems to be about this problem with ".Trash/" not working right anymore:

https://gitlab.gnome.org/GNOME/glib/-/issues/2382

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

Board footer

Powered by FluxBB