The widget trashcan is usually not updated. 2 examples: 1) a full trash is emptied (from dolphin) => widget trash remains full [see screenshot1] 2) a file is deleted (the trash was previously empty) => widget trash remains empty [see screenshot2] In both cases, trash icon in dolphin is always correct (it's only the widget trash which is not correct). Log out from KDE and then login => the widget is finally updated. Reproducible: Always I have noticed this bug in KDE 4.10. In previous version (4.8 or before ?) the widget used to work.
Created attachment 78662 [details] screenshot_1 (trash has been emptied, but the widget says '8 items')
Created attachment 78663 [details] screenshot_2 (file 'aaa.txt' put to trash BUT trash widget still believes 'trash empty')
I also confirm that, in 4.10, the trashcan Plasmoid shows an empty trash when a single file or folder is moved to trash. It shows a full trash when a second file/folder is trashed.
Either the bug is fixed with the recent updates in Debian or it's random. I'll add a comment if it's random.
This is the pattern I see: If, after log-in, the first file/folder is trashed from Dolphin, the trashcan plasmoid will show an empty trash. With a second file/folder it'll show a full trash. However, if a single file/folder is trashed from the Folder View plasmoid, trashcan's state will be updated correctly and after that, it'll also show a full trash with any single file/folder deleted from Dolphin. As the main reporter explained, trashcan worked OK before 4.10.
Persists in KDE-4.11.3. A file is trashed and '~/.kde/share/config/trashrc' says Empty=false, while the trashcan widget shows an empty trash,
Still present in 4.12.4.
I'm still experiencing this bug in KDE 4.13.0.
I can confirm that bug for KDE 4.13.3.
Still present in KDE 4.14.0.
This issue seems to be related to nVidia. I don't see it on another computer with an Intel graphics card, while it still occurs with nVidia.
(In reply to Tsu Jan from comment #11) > This issue seems to be related to nVidia. I don't see it on another computer > with an Intel graphics card, while it still occurs with nVidia. No, it is not specific to nvidia: I have a radeon graphic card (with open source driver).
(In reply to Nicofo from comment #12) > No, it is not specific to nvidia: I have a radeon graphic card (with open > source driver). OK. Just a guess: It may still be related to how Plasma interacts with the graphics card because I don't see it with the Intel card, while it often happened with nVidia and, as you mentioned, it happens with Radeon. I mean this issue may not be just a bug in widget-trashcan. I remember that I looked into its code when I had KDE-4.10 and found nothing suspicious. The code isn't changed since then, I suppose.
I can also confirm that the problem is not limited to NVIDIA GPUs, because I experienced it (see Comment 8) on my laptop using the FGLRX driver for an ATI Mobility Radeon HD5650 GPU, running in 64-bit Gentoo Linux. However, I am no longer experiencing the problem in KDE 4.14.3 on the same laptop.
(In reply to Fitzcarraldo from comment #14) > ... However, I am no longer experiencing the problem in KDE 4.14.3 on the same > laptop. I use Debian Testing with KDE 4.14.2 on two computers, one of which is nVidia based and the other is a laptop with an Optimus system (with Intel as the active card). The issue frequently occurs on the first but it has never occurred on the second. I'll post a comment as soon as KDE >= 4.14.3 comes to Debian Testing.
(In reply to Fitzcarraldo from comment #14) > However, I am no longer experiencing the problem in KDE 4.14.3 on the same > laptop. The same for me. Seems fixed ;)