After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 695460 - Unable to restore trash if the containing directory is removed
Unable to restore trash if the containing directory is removed
Status: RESOLVED FIXED
Product: nautilus
Classification: Core
Component: Trash
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Nautilus Maintainers
Nautilus Maintainers
Depends on:
Blocks:
 
 
Reported: 2013-03-08 19:57 UTC by Redsandro
Modified: 2013-03-19 23:30 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Redsandro 2013-03-08 19:57:17 UTC
When you delete something, it goes into trash:
.Trash-$UID/files/TrashedFile.ext
.Trash-$UID/info/TrashedFile.ext.trashinfo

The trashinfo contains the path relative to .Trash-$UID's parent directory as the location to which the trashed file or directory should be restored.

Imagine accidentally trashing 1000 files, and at some point rmdir the containing directory before you realize you need to restore the trash.

In other file managers like PCManFM (Lubuntu) this is no problem. The paths stored in .trashinfo will be recreated when restoring the trash if it doesn't exist.

In Nautilus (and Nemo), you get 1000 popups at once saying "There was an error getting information about the destination. Details: Error when getting information for file '/mountpoint/path/to/file': No such file or directory."

When having even more files in trash, the many popup dialogs cause the desktop to freeze, requiring a reboot.

For every popup, you can manually do a mkdir -p '/mountpoint/path/to/file', hit "RETRY" and it will work. However, this is not feasible for anything other than a handful of files.

I am not sure this bug is in the right place, or if another GNOME component handles this. If not filed correctly, please help find the right place, because it's pretty important.

Forwarded from here: https://bugs.launchpad.net/ubuntu/+source/nautilus/+bug/1152706
Comment 1 Cosimo Cecchi 2013-03-19 09:40:26 UTC
Thanks for the report; I pushed a fix for this bug to git master now, will be in 3.8.0.
Comment 2 Redsandro 2013-03-19 23:30:10 UTC
Appreciated!