Linked by Thom Holwerda on Mon 28th Apr 2008 21:38 UTC, submitted by kiddo
Graphics, User Interfaces The trash can metaphor in computing is as old as the desktop metaphor itself. It was first introduced with the Apple Lisa user interface, and found its way to the Macintosh. Apple patented the whole idea, and sued anyone who tried to use the same name, resulting in other user interfaces implementing the exact same principle but just named differently. Despite its old age, and the fact it barely changed over the decades, many people have issues with the traditional concept.
Permalink for comment 312063
To read all comments associated with this story, please click here.
Not hard to fix
by unoengborg on Wed 30th Apr 2008 02:35 UTC
Member since:

First use incron to watch the .Trach folder and use touch on each file that is moved to .Trash

Then just run a cron script at regular intervalls that deltes old mail.

cd ~/.Trash;find . -amin +xxxx -exec rm -rf \{\} \;

where xxxx is how long time ago a file was last accessed.

The problem with this is that the files are touched and that their date information gets lost.

If you feel that this is a problem, you could let incron create a soft link preferably starting with a dot to make it invisible, and then modify the find script so that it removes both the link and the linked file when it is time. Don't forget to let incron handle deletion of the links in case a trached file is removed from the trash.

Reply Score: 2