You are not logged in.

Dear visitor, welcome to KDE-Forum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Monday, February 19th 2007, 8:17pm

Trash Can Problem

Seems to be a problem with how the trash can application is handled on the desktop. Although the trash can can be installed on the main panel, some users, including myself, prefer it on the desktop.

I created a "working" trashcan icon on the desktop using the following snippet of code:

[Desktop Entry]
Comment=Contains removed files
EmptyIcon=trashcan_empty
Encoding=UTF-8
Icon=trashcan_full
Name=trash
Name[en_US]=trash
Type=Link
URL=trash:/


The empty trashcan correctly changes its icon to full when I move a file to the trashcan and changes back to empty when I empty the trashcan or restore the file. However, after I restore the file, the trashcan no longer changes to full when subsequent files are moved to it, although opening the trashcan shows that the file has, indeed, been placed in the trash:/ directory. To restore proper functioning of the trashcan after restoring a file, I must empty it. Then it works correctly again.

The problem is that restoring a file from the trash can should not prevent it from showing itself in the "full" state when another item is placed in it.

Any thoughts as to how to overcome this problem? Thanks you in advance.

2

Monday, February 19th 2007, 8:37pm

if you refresh your desktop (rmb menu of kdesktop), does that update the state of the trashcan?

the .desktop file you created is identical to mine, but my trashcan behaves as expected.
So dunno why yours is differen..
Help mee om KDE 3.5.5 in het Nederlands te vertalen

3

Monday, February 19th 2007, 8:48pm

Thanks for replying, Rinse.

Refreshing desktop had no effect. Puzzling.