Bug 293472

Summary: System Tray gets bigger after removing and re-adding it.
Product: [Unmaintained] plasma4 Reporter: Afief Halumi <afief.h>
Component: widget-systemtrayAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED UNMAINTAINED    
Severity: normal CC: Admc, bigbrovar, cordawyn, csaba.kertesz, esmb, jon.holba, julius.schwartzenberg, kde, kdebugs, kmiec.rand, masterdany88, minterior, nick, ntropia, ruediger, topaz, totokid
Priority: NOR    
Version: 4.9.1   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Screenshot of panel after bug appeared.
Bug's manifestation in two rows system tray
Bug in two rows
Snapshot

Description Afief Halumi 2012-02-06 19:41:52 UTC
Created attachment 68573 [details]
Screenshot of panel after bug appeared.

Version:           unspecified (using KDE 4.8.0) 
OS:                Linux

Removing the system tray and re-adding it to the panel makes it take up a lot more space.

Reproducible: Always

Steps to Reproduce:
1. Delete system tray from panel
2. Add system tray to panel

Actual Results:  
System tray taking over twice the size it needs.

Expected Results:  
System tray taking up its normal size.

Screenshot in attachment.

System is Kubuntu 11.10 with the KDE 4.8 PPA.
Comment 1 Afief Halumi 2012-02-06 20:02:06 UTC
Created attachment 68574 [details]
Bug's manifestation in two rows system tray
Comment 2 Afief Halumi 2012-02-06 20:04:58 UTC
Created attachment 68575 [details]
Bug in two rows
Comment 3 Bobby 2012-02-21 08:23:13 UTC
I can confirm this bug on Kubuntu 11.10 with the KDE 4.8 PPA. It seems to be also triggered when (for some reasons) plasma recovers from a crash, the system tray widgets gets twice the size from the way it was before the crash
Comment 4 Stefano Forli 2012-06-18 07:42:51 UTC
A quick search (I could have missed others) it seems this problem has been reported (and marked as RESOLVED) several times in the last years, and in different versions:

https://bugs.kde.org/show_bug.cgi?id=300005 4.8.3
https://bugs.kde.org/show_bug.cgi?id=290982 4.8rc2
https://bugs.kde.org/show_bug.cgi?id=293472 4.8.0
https://bugs.kde.org/show_bug.cgi?id=240347 4.4.8
Comment 5 Myriam Schweingruber 2012-06-20 06:43:46 UTC
*** Bug 300005 has been marked as a duplicate of this bug. ***
Comment 6 Myriam Schweingruber 2012-06-20 06:44:07 UTC
Confirmed in current 4.9 beta2, it still happens after a plasma crash.
Comment 7 Myriam Schweingruber 2012-06-20 06:45:15 UTC
*** Bug 240347 has been marked as a duplicate of this bug. ***
Comment 8 Myriam Schweingruber 2012-06-20 06:45:42 UTC
*** Bug 290982 has been marked as a duplicate of this bug. ***
Comment 9 Myriam Schweingruber 2012-06-20 12:21:19 UTC
*** Bug 302231 has been marked as a duplicate of this bug. ***
Comment 10 Csaba Kertész 2012-07-06 18:00:33 UTC
I have this issue with KDE 4.7.2.

Nasty workaround to remove these ghost entries from the system tray: Restarting the kded4 daemon -> killall kded4 && sleep 2 && kded4 &0
Comment 11 Montblanc 2012-09-29 21:23:32 UTC
Still happening on 4.9.1. Here's a snapshot: http://imageshack.us/a/img692/9751/kdetraybug.jpg
Comment 12 Montblanc 2012-09-29 21:24:16 UTC
Created attachment 74238 [details]
Snapshot
Comment 13 Admc 2012-11-02 09:02:28 UTC
I have the same problem since upgrading to KDE 4.8. Also occurs in KDE 4.9.
Comment 14 sparhawk 2012-11-07 03:24:33 UTC
Dupe of this? https://bugs.kde.org/show_bug.cgi?id=289537
Comment 15 Rüdiger 2012-11-15 18:39:54 UTC
I can confirm this (KUbuntu 12.10, KDE 4.9.2). The systemtray gets flooded with statusnotifieritems.

Workaround: System Tray Settings -> Entries and set them to "hidden".
Comment 16 topaz 2012-11-29 08:26:47 UTC
Hi, also have the bug, because each 3-5 days I must restart plasma-desktop that consumes too much misc pixmaps.
The workaround is fine, but very annoying when you have dozens of icons nto deactivate ...

Is there a "shell" way to put icons from auto to hidden ?

And last, is there a way to define the default show policy for systray icons ? (using a regexp, or not) maybe a global policy ?

Thanks in advance.

PS: bug since Kubuntu 12.04
Comment 17 Csaba Kertész 2012-11-29 08:43:36 UTC
> The workaround is fine, but very annoying when you have dozens of icons nto
> deactivate ...
> 
> Is there a "shell" way to put icons from auto to hidden ?
> 
> And last, is there a way to define the default show policy for systray icons
> ? (using a regexp, or not) maybe a global policy ?

Don't do it manually. When the KDE4 daemon is restarted, the ghost entries disappear. The best workaround to create a script with the following content:

killall kded4 && sleep 2 && kded4 &0

And add a global shortcut (e.g Windows key+F3) in KDE to launch this script.
Comment 18 sparhawk 2012-12-03 00:19:29 UTC
is that a trailing 0? Shouldn't it be:
killall kded4 && sleep 2 && kded4 &
Comment 19 Csaba Kertész 2012-12-05 10:48:39 UTC
(In reply to comment #18)
> is that a trailing 0? Shouldn't it be:
> killall kded4 && sleep 2 && kded4 &

No, it is meant to end with &0
Comment 20 Nick Leverton 2012-12-19 00:39:20 UTC
I don't think it is meant to end in just plain &0 because bash parses that as a command.  Has the command been bitten by a missing angle bracket perhaps ?

[/testing: leveret@george ~]$ killall kded4 && sleep 2 && kded4 &0
[2] 30401
bash: 0: command not found
[/testing: leveret@george ~]$ 

Experiment and logic suggest that "greaterthan ampersand zero" may be what was originally typed  before BZ mangling. Thankyou for this workaround.
Comment 21 sparhawk 2012-12-22 01:58:26 UTC
My Bash isn't strong enough to really understand what >&0 (greaterthan ampersand zero) means here. Doesn't this mean to redirect standard output to the same place handle 0 (i.e. stdin) goes? But in this case stdin is just the terminal? So it this case it would do nothing?
Comment 22 Nate Graham 2018-06-08 19:48:19 UTC
Hello!

This bug report was filed for KDE Plasma 4, which reached end-of-support status in August 2015. KDE Plasma 5's desktop shell has been almost completely rewritten for better performance and usability, so it is likely that this bug is already resolved in Plasma 5.

Accordingly, we hope you understand why we must close this bug report. If the issue described  here is still present in KDE Plasma 5.12 or later, please feel free to open a new ticket in the "plasmashell" product after reading https://community.kde.org/Get_Involved/Bug_Reporting

If you would like to get involved in KDE's bug triaging effort so that future mass bug closes like this are less likely, please read https://community.kde.org/Get_Involved#Bug_Triaging

Thanks for your understanding!

Nate Graham