KDE Trash Can

Posted on July 28th, 2008 in Linux Admin, Ramblings by Rodney

Recently, I moved to CentOS 5 for my VM Server. As pretty much the only thin I do with it is host VM sessions, I pretty much do everything as root. I know this isn’t “best practice” but it’s easier to manage – and like I said, it’s just there to house my VM sessions which do the real work.

So anyway, one thing that really bugs me is that under root on the newer brands of KDE – there is no trash can icon. When you delete something, it goes into “trash” by default – but you can’t see trash. You have to magically know the file location, by heart, then go and delete it.

Dumb.

Anyway, here’s how to make the trash can come back.

1. Create a new text file on the desktop.
2. Paste this into it:
[Desktop Entry]
Comment=Contains removed files
EmptyIcon=trashcan_empty
Encoding=UTF-8
Icon=trashcan_full
Name=Trash
Type=Link
URL=trash:/

3. Save the text file.

That’s it A trash can will now appear and you can start off by trashing that text file you just made.

Too easy.