Tuesday, July 25, 2006
Configuring a Trash Bin for Xubuntu
The original hack may result inconvenient for some users: it can be used only in the terminal. For convenience I quote the interesting thing:
Currently, Xubuntu doesn’t have an option to move files to the trash. You can, however, recreate it in the terminal:
First, create a file named
sudo mousepad /usr/bin/del
Copy and paste the following into the file:
mv -vi -- "$@" $HOME/.Trash
Save, exit, and make the file executable. Run
sudo chmod -v 755 /usr/bin/del.
Using the hack in Thunar
To use the trash bin in Thunar we just need to create a new custom action. That's easy:
- Follow all the steps described in the previous section.
- Open Thunar and select "configure custom actions..." in the Edit menu.
- Add a new action by pressing the "+" button.
- In the dialog, set the options like shown in the figure. Name it like you want. I named it "Move to trash".
- In the "appearance conditions" tab leave pattern as "*" and select all the check boxes. See second figure.
Notice that you must create manually a folder named
.Trashin your home folder and that there is no restore option. If you want to restore a file you have to move it from the
.Trashfolder to the original location.
This can be improved, of course. I wait for your comments.
Add to: del.cio.us | digg | furl | blinklist | netvouz