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.
I have a better idea:
Here's a desktop file (/usr/share/ applications/ trashcan. desktop) : pastebin. com/YbKcrw3F
http://
And a dockitem: pastebin. com/8PjYaLNG
http://
And some bash magic to make it really work (rewrite in vala?): pastebin. com/esgaJXmB
http://
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.