I've figured out the Plasma 5 wastebin icon bug pattern

So, when the wastebin icon bug started happening again the other day (after it seemed to have gone away forever), I set out to really do some heavy testing, and I’ve finally figured out the “pattern” or the “right conditions”:

  1. Make sure the wastebin both is and looks empty.
  2. Put a file on the desktop.
  3. Double-click the wastebin icon on the desktop so that a Dolphin window opens showing the empty wastebin.
  4. Delete the file from the desktop by either pressing “Delete”, moving it into the wastebin icon, moving it into the wastebin Dolphin window, or by selecting “Move to Wastebin” from its context menu.
  5. The wastebin will now switch its icon to look full, and the file appears in the wastebin Dolphin window. (So far, so good.)
  6. Now empty the wastebin by either clicking “Empty Wastebin” in the wastebin Dolphin window, or by the wastebin’s context menu.
  7. The wastebin will be emptied but the icon will remain looking “full”, no matter what you do, including pressing F5 on the desktop. The only way to get it to look empty now seems to be to delete another file (with the wastebin Dolphin window closed) and then empty it again.

This must be why it felt so “random”; I didn’t always have the wastebin opened in Dolphin.

Important: This only happens if the wastebin Dolphin window was open when the file was deleted. If you start off with no wastebin Dolphin window and then open the wastebin Dolphin window and empty it, the icon does revert back to looking empty (as it should).

Possibly this has been fixed in Plasma 6 and I’m just reporting “old news”, but maybe this has some value to you. I can’t be the only one “stuck with” Plasma 5. (Also, some fixes do seem to trickle down even on Debian stable; it’s not completely frozen in time.)

1 Like

I can’t reproduce on Plasma 6.3 beta 2.

It might be worth checking if there’s a hidden file in the wastebin causing the icon to remain looking full, although clicking “Empty Wastebin” should remove those too.

Which version of Plasma 5 do you have?

If 5.27 then is the bug reported on the KDE bug tracker? I coudn’t see it.

I have a fix proposal desktopnotifier: listen trash state changes from trashrc (!5120) · Merge requests · Plasma / Plasma Workspace · GitLab

1 Like

I could reproduce it with dev branch.

@Paul_Worrall Well, it’s not a hidden file because I repeated the experiment many times to make sure it wasn’t just a one-time thing. But that thought (and many similar) has struck me in the past as a possible explanation, until I figured out why (or rather when) it happens.

My Plasma version is “4:5.27.5-2”, most likely meaning 5.27.

@meven Thanks.

I guess a likely reason for why this bug hasn’t been discovered before is that I’m one of possibly few who have Dolphin set to open a new instance of it for each folder I open instead of reusing the same single one, which I believe (I’m not sure now) is the default. So I might open the wastebin, empty it, leave its Dolphin window open and forget about it all day, but it’s really running (minimized) in the group of Dolphin instances. (Not that this should matter in any way, of course, but that would trigger this weird bug.)