Setting up a trash can on the Linux desktop
Q I have two questions, both concerning forgotten program names. The first follows on from a major deleting 'oops!' I had recently. (Computers don't do what you want them to do, they do what you tell them to do, and I really need better protection from my own fallibility.) I once read, possibly in your own pages, about an undelete daemon. Any file delete command was intercepted - it must redefine the system unlink call or something - and converted to move the file to a trash folder.
Then instead of immediately emptying the trash, as most people do, you find you can't. It persists until the trash totals a predefined size, or free space starts to fall below another threshold. The other issue is that I'm a web developer, and need to test on a wide variety of browsers. I have heard of a GTK and KHTML browser project, which would be very useful if only I could remember its name. I don't want to install Konqueror because it depends on just about all of KDE's bloat. I don't need a full-featured browser. Just something lightweight will be fine.
A The trash can program you are thinking of may be Delsafe, from http://delsafe.cjb.net. This works much as you describe, replacing library calls to move deleted and overwritten files to a trash can instead of deleting them. Multiple deletions or overwrites of the same filename are timestamped, and an undel program is provided to recover the files. Another possibility is libtrash, from http://pages.stern.nyu.edu/~marriaga/software/libtrash, which offers similar features.
Follow us on Identi.ca or Twitter