PDA

View Full Version : [gnome] .Trash-1000 don't empty with Trash


fewyun
May 7th, 2008, 12:22 PM
When I delete a file in nautilus that is on a non-root partition it goes to a .Trash-1000 folder (which I assume is the intended behavior). It then proceeds to show up in my trash:// window like it should.

But when I click empty trash it doesn't delete any of the files that are on the other partitions (and it doesn't display any error). When I try to delete the file directly (still in trash://) it provides me with a message that it couldn't delete "__files_.Trash-1000_desktop" (the file is actually at /_files/.Trash-1000/files/desktop; notice the missing /files/ directory in the first filename).

I assume the gnome trash:// system is incorrectly losing track of the /_files/.Trash-1000/files/desktop path and assuming that it is a file in ~/.local/share/.Trash/files/ named __files_.Trash-1000_desktop.

I have been dealing with this bug since the Hardy beta, but I just clean installed the release and it still happens.

I haven't found any posts on fixing this (other than deleting the file directly from the .Trash-1000 folders every time)

Should this be filed in bugs? If so how is the best way to do that?

Does anyone have a fix? or Questions?

DirtDawg
May 7th, 2008, 12:39 PM
For as long as I've been using Ubuntu (Warty), it's had this problem with certain partitions (especially usb drives). My solution is not really a solution, but it works.

In the Nautilus preferences, under the Behavior tab, turn on the "Include a delete command that bypasses trash" option. Anytime you want to throw something out from the partition in question, just right-click the file and choose to delete. Careful though, because the delete command is ruthlessly permanent.

EDIT: Oh, sorry. Right after I posted I reread your post and see you already have this covered. My bad.

fewyun
May 7th, 2008, 12:49 PM
Thanks for replying

Hmm, thats interesting that you have seen it for so long; I have never seen this issue before this.

I was thinking that it was a new issue brought about by the .Trash folders change from .Trash-[username] to .local/share/.Trash (and .Trash-1000?)

Another possibility is that I recently started using mdadm to provide software raid. But it is an issue on all of my partitions, the raid partition and another non-raid partition.

This seems like a really big issue, especially for the average user.

Awalton
May 7th, 2008, 07:16 PM
http://bugzilla.gnome.org/show_bug.cgi?id=523139

I've got a patch that uses hex encoding for filenames, but it's got other flaws, so it still needs some work. Also, gnome hacker "desrt" has a complete rewrite of this backend, so I'm blocking on him to see what we want to do for this.