Le Vendredi 27 Juin 2003 19:58, andre a �crit :
> On Friday 27 June 2003 15:04, Michael Scherer wrote:
> > > I suggest another way : the clever trash ! (not yet patented ;-)
> > >
> > > The trash already does exist. My idea is to improve it.
> > > - Add a configuration file for the trash with :
> > >   a max size
> > >   select a strategy.
> > > - If the max size is exceeded, apply the strategy :
> > >   change the icon : color, animated
> > >   play a sound
> > >   erase definitively a percentage (10% to 100%) of old/biggest files
> > >
> > > This is not too much difficult to do and, more important, it is
> > > easily understandable by everybody.
> > > For a newbie, this can be seen as a great improvement.
> >
> > this is more a request for kde or gnome, you should file a bug report in
> > their bugzilla, this sound like a good idea.
>
> This is not a gnome or kde issue. This should be done on a very low level
> so ALL programs will use the trash.

This could be an issue. But I am not sure that a low level hack is the best 
solution. Sometimes people want really erase a file.
Deleting a file can be also a "wipe" which means that the file must
be absolutly impossible to restore.
wipe : http://wipe.sourceforge.net/ does exist in Mandrake contribs.

So, when I use a low-level instruction, I am able to make the right choice. 

With a medium level (bash) it is just necessary to create a rmc (remove 
clever) which is able to move files in the trash. This is easy to do.
Then, it is possible to use:  alias rmc='rm -a'

With a high level, delete key (KDE ) move already the file in the trash.
There is just a lack of maid or cleaning lady to empty it !

The trash directories should be defined in a config file or defined with an 
environment variable.

To avoid a daemon, it is possible to calculate the size of the trash after
a move in the trash (rmc)

-- 
Pierre Jarillon - http://pjarillon.free.fr/
Vice-pr�sident de l'ABUL : http://abul.org/


Reply via email to