On Saturday 28 June 2003 23:09, Pierre Jarillon wrote:
> Le Vendredi 27 Juin 2003 19:58, andre a �crit :
> > 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.

shred, which is in coreutils, should do the same but you can't be absolutely 
sure that a file can't be restored with any command. The change that you can 
restore a file however you shred it with an electron microscope isn't big but 
it is a possiblity

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

So you have to make a filesystem dependent shred. That is to be expected. I'm 
not even sure that XFS and ReiserFS will shred small files which have grown.

>
> 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'

I can't find rm -a in the man pages, what does it do. But that is not the big 
problem. Many programs (all not script?) don't look at the alias for their 
internal remove command so the avarage use would expect that a deleted file 
would go into trash but it isn't because they deleted it inside for example 
ee.

>
> 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.
Trash should be /trash with a ~/trash linked to /trash/home/
>
> To avoid a daemon, it is possible to calculate the size of the trash after
> a move in the trash (rmc)
It shouldn't be a daemon. It should be a filesystem attribute (wrong word use 
but can't think of the right word)


Reply via email to