Bug 290628

Summary: applications not shown on system tray
Product: [Plasma] plasma4 Reporter: Silver Salonen <silver.salonen>
Component: widget-systemtrayAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED NOT A BUG    
Severity: normal CC: 7c0.000, kde, maris.kde, travisgevans, virtuousfox
Priority: NOR    
Version: 4.10.0   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: ~/.kde4/share/config/plasma-desktop-appletsrc file that seems to trigger bug

Description Silver Salonen 2012-01-04 20:16:09 UTC
Version:           unspecified (using Devel) 
OS:                Linux

After upgrading 4.8 from RC1 to RC2 system tray does not show some applications any more. 2 examples are Opera and Thunderbird with FireTray (and one more). The applications have not been updated.

Reproducible: Always

Steps to Reproduce:
Launch application, eg. Opera without disabling system tray icon.

Actual Results:  
There's only task bar entry, no system tray icon.

Expected Results:  
There should also be system tray icon.
Comment 1 Silver Salonen 2012-01-24 17:03:38 UTC
Still happens on 4.8.0 (openSUSE packages). It seems to happen with all non-KDE4 applications (including Amarok 1.4).
Comment 2 Māris Nartišs 2012-01-30 19:22:02 UTC
Same here - 4.8.0 on Gentoo ~AMD64 - all non-KDE applications are missing from system tray. 
Impossible to access Skype, as it's running and there's no way how to open it's window. It's impossible to connect to WIFI networks, as wicd client is running and automatically minimized to tray.
Comment 3 Jekyll Wu 2012-01-31 15:37:07 UTC
Works for me when using skype, opera and xchat in KDE SC 4.8
Comment 4 Silver Salonen 2012-01-31 19:30:56 UTC
Well, it also works on my 64-bit pc at work, but not on my 32-bit pc at home. The openSUSE software repositories are almost identical though.
Comment 5 Māris Nartišs 2012-03-10 09:43:14 UTC
(In reply to comment #2)
> Same here - 4.8.0 on Gentoo ~AMD64 - all non-KDE applications are missing
> from system tray. 
> Impossible to access Skype, as it's running and there's no way how to open
> it's window. It's impossible to connect to WIFI networks, as wicd client is
> running and automatically minimized to tray.

Problem was solved by rm'ing ~/.kde4 (remember kids, don't try this at home!)
Comment 6 Silver Salonen 2012-03-10 21:33:44 UTC
I really don't think that removing ~/.kde4 can be considered as solving or even as a workaround.

PS. Issue still here in KDE 4.8.1.
Comment 7 Sergey Kondakov 2012-04-15 06:46:35 UTC
same here with the update from 4.8.1 to 4.8.2 on Gentoo: all non-kde apps missing from tray.
removing ~/.kde4/share/config/{plasma*,kdesktop*} nullifies plasma config and "fixes" the problem.

and my KDE config directory spans from 4.0 and each version in-between. with all the outmoded, half-deprecated undocumented crap which accumulated inside KDE configs in that time, it's no wonder that something crazy, like this, happens.
Comment 8 Silver Salonen 2012-04-15 10:32:59 UTC
I certainly don't want to delete the configuration files and doing it actually makes it impossible to debug the real issue.

So maybe anyone knows where is the system tray section in these config files? I grepped -i 'tray' from these files, but this did not turn out anything interesting.
Comment 9 Silver Salonen 2012-07-02 10:09:45 UTC
Still happens with 4.9 RC1.
Comment 10 Myriam Schweingruber 2012-08-06 02:21:19 UTC
Confirmed by other user.
Comment 11 Silver Salonen 2012-08-06 11:30:39 UTC
Happens with 4.9 final too.
Comment 12 7c0.000 2012-12-01 17:59:56 UTC
I have had also this problem. The workaround is removing systray from panel and adding it again. In my case it helped.
Comment 13 Silver Salonen 2012-12-02 08:17:16 UTC
I have tried it, but it doesn't fix it in my case.
BTW, I use KDE 4.9.3 currently and this behavior is still there :(
Comment 14 7c0.000 2012-12-03 15:22:58 UTC
(In reply to comment #13)
> I have tried it, but it doesn't fix it in my case.
> BTW, I use KDE 4.9.3 currently and this behavior is still there :(

You are right. After restarting of KDE the problem returns :-(
Comment 15 Silver Salonen 2013-02-17 12:17:28 UTC
Haha, what good joke this bug is :)

When I upgraded to 4.10 I started getting another notifications on the opposite corner of the screen. So that kind of made me wonder that maybe there is a duplicate and hidden panel somewhere. I opened up ~/.kde4/share/config/plasma-desktop-appletsrc file and looked for 'systemtray'. And indeed - there was a duplicate panel that had the size of my old  monitor's width - so maybe the old panel got duplicated when I changed my monitor?

The panel had identifier '[Containments][3]', so (while being logged out of KDE) I removed all the lines of that containment and when I logged into KDE again, and the duplicate notifications were gone. And now all the system tray icons are in the correct place again.

I hope our KDE "helpdesk" (aka users themselves) can learn something from that :)
Comment 16 Sergey Kondakov 2013-02-17 12:42:17 UTC
i, personally, learned that KDE4 allows for hidden desktop elements, which cannot be removed by KDE's own means (since it lacks "remove" option in plasmoids list and a comprehensive active plasmoids list at all, unlike KDE3) and can seriously screw up one's desktop in non-obvious way.

and that is a bug of regression on its own. or a design decision and a "feature", depending on how you look.
let's hope, that someone else would report it, because it won't be me.
Comment 17 Silver Salonen 2013-02-17 12:53:32 UTC
Yes, I agree. This issue could be taken as the one about hidden elements or better handling of all the different containers on the desktop.

But as for this certain bug - this was still not the case as it seems that the tray icons were there, but they were only on a hidden panel's system tray.
Comment 18 Andy Pieters 2013-09-21 06:39:56 UTC
I can confirm this on KDE 4.11.00 (running on x86_64, Arch Linux).

My problem was exactly as described: non-kde applications that used the system tray were not appearing [in the system tray]

To identify which 'containments' to retain, I added a weather application on my left screen's panel, and a comic application on my right screen's panel, then dug in the plasma-dekstop-appletsrc file.

I found several 'containments' in there (1,14,28,29,30), of which 1 contained the weather app, and 30 contained the comic app.

After logging out of KDE, I removed 'containments' 14,28,30 from the plasma-dekstop-appletsrc, and logged back in.

It is a miracle! All the missing icons are back!

In my zeal, however, I note that I managed to delete the desktop background settings, but that was easily remedied.
Comment 19 Andy Pieters 2013-09-21 06:42:21 UTC
Sorry I just noticed a 'bug' in my comment.

Please read 

"After logging out of KDE, I removed 'containments' 14,28,30 from the plasma-dekstop-appletsrc, and logged back in."

to be

After logging out of KDE, I removed 'containments' 14,28,29 from the plasma-dekstop-appletsrc, and logged back in.
Comment 20 Travis Evans 2013-10-13 05:57:57 UTC
I just got bit by this. Non-KDE tray icons missing. Everything was fine after an update, then system crashed, I rebooted, then the tray was messed up. Removing and readding it didn't help. As mentioned above, removing plasma-desktop-appletsrc brought them back to normal.

I'll attach my broken plasma-desktop-appletsrc in case someone wants to try to debug.
Comment 21 Travis Evans 2013-10-13 05:59:58 UTC
Created attachment 82817 [details]
~/.kde4/share/config/plasma-desktop-appletsrc file that seems to trigger bug