Bug 317894 - Widget trash not correctly updated
Summary: Widget trash not correctly updated
Status: RESOLVED WORKSFORME
Alias: None
Product: plasma4
Classification: Unmaintained
Component: widget-trashcan (show other bugs)
Version: 4.11.10
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-05 19:03 UTC by Nicofo
Modified: 2015-04-04 12:52 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
screenshot_1 (trash has been emptied, but the widget says '8 items') (195.10 KB, image/png)
2013-04-05 19:05 UTC, Nicofo
Details
screenshot_2 (file 'aaa.txt' put to trash BUT trash widget still believes 'trash empty') (175.62 KB, image/png)
2013-04-05 19:06 UTC, Nicofo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nicofo 2013-04-05 19:03:53 UTC
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.
Comment 1 Nicofo 2013-04-05 19:05:26 UTC
Created attachment 78662 [details]
screenshot_1 (trash has been emptied, but the widget says '8 items')
Comment 2 Nicofo 2013-04-05 19:06:45 UTC
Created attachment 78663 [details]
screenshot_2 (file 'aaa.txt' put to trash BUT trash widget still believes 'trash empty')
Comment 3 Tsu Jan 2013-07-21 18:14:40 UTC
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.
Comment 4 Tsu Jan 2013-07-23 15:36:40 UTC
Either the bug is fixed with the recent updates in Debian or it's random. I'll add a comment if it's random.
Comment 5 Tsu Jan 2013-07-24 10:51:27 UTC
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.
Comment 6 Tsu Jan 2013-11-27 12:41:00 UTC
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,
Comment 7 Tsu Jan 2014-05-06 22:42:23 UTC
Still present in 4.12.4.
Comment 8 Fitzcarraldo 2014-05-08 15:25:57 UTC
I'm still experiencing this bug in KDE 4.13.0.
Comment 9 dev.dliw 2014-08-28 19:23:08 UTC
I can confirm that bug for KDE 4.13.3.
Comment 10 Tsu Jan 2014-08-28 19:41:29 UTC
Still present in KDE 4.14.0.
Comment 11 Tsu Jan 2015-03-02 03:10:42 UTC
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.
Comment 12 Nicofo 2015-03-04 20:54:58 UTC
(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).
Comment 13 Tsu Jan 2015-03-04 22:24:10 UTC
(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.
Comment 14 Fitzcarraldo 2015-03-20 00:20:28 UTC
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.
Comment 15 Tsu Jan 2015-03-20 00:37:57 UTC
(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.
Comment 16 Nicofo 2015-03-28 17:57:47 UTC
(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 ;)