Comment 15 for bug 1058468

Revision history for this message
quequotion (quequotion) wrote :

I have a better idea:

Here's a desktop file (/usr/share/applications/trashcan.desktop):
http://pastebin.com/YbKcrw3F

And a dockitem:
http://pastebin.com/8PjYaLNG

And some bash magic to make it really work (rewrite in vala?):
http://pastebin.com/esgaJXmB

The icon will function as a drop target for files and folders, but open the trash directory when clicked.

It also features an "Empty Trash" right-click option.

The only thing I couldn't figure out was how to switch the icon when there is trash.