Bug 436009

Summary: some Systemtray icons doesn't work on click
Product: [Plasma] plasmashell Reporter: Daniel <daniel.skapunk>
Component: System Tray widgetAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED NOT A BUG    
Severity: normal CC: materka
Priority: NOR    
Version First Reported In: 5.21.4   
Target Milestone: 1.0   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Daniel 2021-04-21 16:29:20 UTC
Some icons doesn't work on click.
Stremio, Ulauncher, Discover Available Updates, Language Switching, etc.

When I click one of those nothing happens. (Notifications, Clipboard, Audio Volume)

For testing pourpuses I started systemtray plasma on the shell with:
Code: Select all
plasmawindowed org.kde.plasma.systemtray


when I click on one of the icons it throws this message:

file:///home/daniel/.local/share/plasma/plasmoids/org.kde.plasma.private.systemtray/contents/ui/items/StatusNotifierItem.qml:62: TypeError: Cannot call method 'operationDescription' of undefined


Distro:

lsb_release -a
No LSB modules are available.
Distributor ID: Neon
Description:    KDE neon User Edition 5.21
Release:        20.04
Codename:       focal

kf5-config --version
Qt: 5.15.2
KDE Frameworks: 5.81.0
kf5-config: 1.0
Comment 1 Konrad Materka 2021-04-21 20:20:24 UTC
This is strange... in 5.21 line number should be 61, not 62:
https://invent.kde.org/plasma/plasma-workspace/-/blob/Plasma/5.21/applets/systemtray/package/contents/ui/items/StatusNotifierItem.qml#L61

Are you using LatteDock? Or maybe you have some custom version in "~/.local/share/plasma/plasmoids/"?
Comment 2 Daniel 2021-04-21 21:14:23 UTC
(In reply to Konrad Materka from comment #1)
> This is strange... in 5.21 line number should be 61, not 62:
> https://invent.kde.org/plasma/plasma-workspace/-/blob/Plasma/5.21/applets/
> systemtray/package/contents/ui/items/StatusNotifierItem.qml#L61
> 
> Are you using LatteDock? Or maybe you have some custom version in
> "~/.local/share/plasma/plasmoids/"?

Yes, I'm using LatteDock. 
Is that what added a custom version of the systemtray over the official one?

Yes, the code is slightly different. I think I may have an outdated version in
"~/.local/share/plasma/plasmoids/org.kde.plasma.private.systemtray/"

I deleted the version in "~/.local/share/plasma/plasmoids/org.kde.plasma.private.systemtray/" and now everything seems to work :D

Thanks a lot :)
Comment 3 Konrad Materka 2021-04-22 17:51:17 UTC
LatteDock has it's own fork of QML part System Tray but uses the same shared C++ libraries. Sometimes, especially after a release of new Plasma version, LatteDock fork is outdated and incompatible with shared libraries.

Having old copy in "~/.local/share/plasmoid/" does not help either. Anyway, good it was an easy fix.