Written by cybermanolin the 28 Feb 08 at 15:56.
Category: System.
Related project:
Nothing/Others.
Status: Not an idea
Rationale
I dislike a lot that the system makes a hidden folder "/trash" in the USB, floppy and others ... The erasure should be direct in these elements because it is very confusing to have this hidden folder storing it erases not even know it
It is a difficult problem, imagine this senario: Mr A uses someone elses computer to manage his files, if he deletes a file it will then be moved to who ever's computer he is borrowing to do this. Resulting in Mr A not being able to restore his files when not at that specific computer and Mr A's files being now being stored on a stranger's/public computer possibly without his knowledge.
This is quite a common senario with removeable media, and has been the topic of a lot of debate within the GNOME community. I think the current behaviour is correct, but it needs to be more obvious to the user that the trash is held on the stick. Nautilus should look for a .trash folder and display a Trash icon.
> I actually think it should be in the USERS trash.
This is a REALLY BAD IDEA (tm). How do [evil programs] often get transmitted? Why should "trashing" a 500MB file on a removable drive take 5 minutes (while it moves to the User's directory's trash)? What if you have sensitive information you're attempting to trash from the drive?
Computers aren't the same as supermarkets, files are not the same as groceries. Trashes are per-locale because that's the way they need to be for security and practicality reasons. What users really need is a warning that the trash has contents, and those contents should be flushed before unmounting if the user has no objections to that. And that's exactly what Nautilus does now (http://bugzilla.gnome.org/show_bug.cgi?id=138058 RESOLVED FIXED).
The only thing left would be a patch that made sure to scan all possible trash directories so that we can assert they are all emptied properly. This is not a lot of work and could be done in a day if anyone sat down to do it (but it's not really high priority for the end of this cycle, as there are many more regressions to fix first in file management). It's also not great if the drive is not FAT, as those other trash folders may have permissions set so you can't empty them without being root.
I'd like to propose an entirely different approach:
I think trash-deletions and secure-wipes should be implemented at the kernel/filesystem level, so that the kernel knows when a file should be deleted, recovered, or erased forever. Then the filesystem itself can hide the trash so it doesn't bother you until you use some special tool to recover it. Making the file actually go away would just a matter of syncing the device before unmounting (as usual for any other write to the filesystem), or even immediately modifying, if the filesystem is mounted with the "sync" flag -- again, as usual. Less special tricks, less low-level stuff for the desktop to think about, more consistency, and more awareness from the OS of what's REALLY going on with your files.
I think ease of use should come first, and knowing how to properly or securely delete your files is part of the learning process, not something that is flawed in its design.
i think there should be no trash for removable volumes, and when a file is selected to be deleted a warning appears notifying the user that it won't be moved to trash but entirely erased. that seems to me the cleanest solution.
I think that it is fine the way it is (on mine anyway) as in it deletes /trash files when unmounting. Also it is very easy to go into the user trash and see trash on the removable device. (mine shows it automatically)
i think there should only be trash for removable drivers over 10gb, i really find trash useful on my 500gb external hd but annoying on my 1gb memory stick
Moving files between drives as a step to getting rid of them is inefficient, but the idea of the trash is good in my opinion.
I think the only needed change is that whenever the trash is emptied by a user with trash on removable drives then those removable trash folders should be deleted too.