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 381517 - .Trash-$USER does not behave as expected on non-fixed volumes
.Trash-$USER does not behave as expected on non-fixed volumes
Status: RESOLVED FIXED
Product: gnome-applets
Classification: Other
Component: trash applet
2.16.x
Other All
: Normal critical
: ---
Assigned To: gnome-applets Maintainers
gnome-applets Maintainers
Depends on:
Blocks:
 
 
Reported: 2006-12-02 07:40 UTC by isaac
Modified: 2010-01-24 01:07 UTC
See Also:
GNOME target: ---
GNOME version: 2.15/2.16


Attachments
Monitor newly mounted volumes for creation of .Trash-$USER (4.71 KB, patch)
2007-02-04 02:43 UTC, Jesse Stockall
needs-work Details | Review

Description isaac 2006-12-02 07:40:20 UTC
Please describe the problem:
When empty trash is selected, .trash-$USER is not cleared on gnome-volume-manager mounted volumes. Suggested as critical because user is not aware of the hidden trash, and does not seem to have any files, or free space on their removable volume. This problem has been reproduced in several versions of gnome, using ubuntu.

Steps to reproduce:
1. Right click on a bunch of files, select "move to trash"
2. Right click on the trash can on the taskbar, and select to empty it.


Actual results:
.trash-$USER is not cleared, resulting in the files not being unlinked from the volume, and the volume not being cleard for re-writing.

Expected results:
Expected result is all files in .trash-$USER on the removable volume being unlinked and df reporting more space free on the volume :)

Does this happen every time?
yes.

Other information:
i did do some searches to try not to duplicate another bug, but to my suprise, i did not find a duped bug, mabye i havent searched hard enough, but i have experienced this problem on a lot of systems
Comment 1 Jeffrey Stedfast 2006-12-03 00:08:57 UTC
don't see how this is a g-v-m bug...?
Comment 2 isaac 2006-12-03 04:00:50 UTC
That may be, but if not, whose bug is this?

I can repost it, but it is a major usability issue, and it shouldnt be ignored.
Comment 3 Teppo Turtiainen 2007-01-19 20:36:48 UTC
Related to bug 138058.
Comment 4 Jesse Stockall 2007-02-03 03:00:07 UTC
This happens with the trash panel applet. (tested 2.16.2)

Emptying the trash with nautilus "File -> Empty Trash" works as expected.
Comment 5 Jesse Stockall 2007-02-03 12:25:00 UTC
More info:

If the removable drive does not have a .Trash-$USER when it's mounted the trash applet does not monitor the trash on that drive. This means that the trash applet is not aware of items moved to the trash after mounting.

This is a gnome-applets bug, not nautilus.


Comment 6 Jesse Stockall 2007-02-04 02:43:18 UTC
Created attachment 81848 [details] [review]
Monitor newly mounted volumes for creation of .Trash-$USER
Comment 7 Danielle Madeley 2007-02-04 05:20:16 UTC
There is still a bug somewhere in this patch.

Using a keyring with no .Trash-davyd (thanks OSDL!), I deleted the files on it. Trashapplet didn't notice. I then undeleted the files, and removed the empty .Trash-davyd and unmounted the volume. I remounted the volume and deleted the files. This time Trashapplet did notice.

I undeleted the files again and removed .Trash-davyd and then restarted Trashapplet. I got the same results, so it suggests that something doesn't work the first time through. I'm not sure if it's the first time through for any removable volume or for each specific removable volume.
Comment 8 Allison Karlitskaya (desrt) 2008-12-21 20:24:43 UTC
The new GVFS trash backend takes care of presenting all volumes under a unified trash:/.