[Thunar-dev] Network access in thunar?

Erlend Davidson E.R.M.Davidson at sms.ed.ac.uk
Sun Aug 13 14:45:00 CEST 2006

Danny Milosavljevic wrote:
>> Danny Milosavljevic wrote:
>>> Sorry, I only read the trash spec now (and implemented
>>> http://www.scratchpost.org/hacks/trasher/ :)). I see that the trash
>>> directory name uses the user ID instead of the name. baaad.
>> Using the name would be even worse... But before this discussion becomes
>> totally off-topic, imagine a simple use case: You have a private website
>> were you upload stuff via FTP, and your quota is 5MB. Now you reached
>> 4.9MB and want to delete some stuff. So deleting 20 images, up to
>> 500KiB, but your total size is still 4.9MB!? How many people would look
>> into the trash now?
> They'd probably learn to look into the trash after the first
> time that happens. 
This actually happens to us at uni - we have a 15MB limit on our home 
directories.  It takes new users (I mean windows users who are using a 
linux system for the first time) a few minutes to work out that they 
need to empty the trash too.
> The actual problem is that users don't expect the trash to be cleared
> automagically (as a real-world trash would be). 
> If they would, I'd do:
> if no space available on filesystem for new file A, clear oldest trash
> entries until there is.
> :)
> But that will inevitable lead to "You bastard! You emptied my trash! I had
> life-important documents in there" ;)
If you set the trash to a particular size, 100MB (customizable by the 
user) so that when a file is deleted that would make it 110MB the oldest 
file in trash is removed.  This could be a setting: "Space-Restricted 
Trash" with a "Traditional Trash" mode also available.  The first time 
this happens the user should be informed and given the option of 
changing to the traditional mode perhaps?

More information about the Thunar-dev mailing list