Bug 411851 - Systray icons loose connected actions, if hidden once
Summary: Systray icons loose connected actions, if hidden once
Status: RESOLVED DUPLICATE of bug 365105
Alias: None
Product: plasmashell
Classification: Plasma
Component: System Tray (show other bugs)
Version: 5.16.4
Platform: openSUSE Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-09-12 11:45 UTC by Hans-Peter Jansen
Modified: 2019-10-14 18:29 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
A small PyQt5 script, that demonstrates the ploblem (25.49 KB, application/gzip)
2019-09-12 11:45 UTC, Hans-Peter Jansen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Hans-Peter Jansen 2019-09-12 11:45:00 UTC
Created attachment 122624 [details]
A small PyQt5 script, that demonstrates the ploblem

If you toggle the systray icon with the attached test app, you loose both connected actions, the context menu (right click) and the dialog visibility toggling (left click).

Note; the app can be closed without fuzz, if you close the dialog, while the systray icon is in hidden state.

STEPS TO REPRODUCE
1. run attached app
2. toggle systray icon
3. click on systray icon with left and right button

OBSERVED RESULT
Neither the systray context menu is shown, after the systray icon is hidden once, nor it toggles the dialogs visibility anymore.

EXPECTED RESULT
Both actions should be available, after unhiding the systray icon.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: openSUSE Tumbleweed 20190907
KDE Plasma Version: 5.16.4
KDE Frameworks Version: 5.61.0
Qt Version: 5.13.0

ADDITIONAL INFORMATION
This issue is not related to the PyQt5 implementation. Try the official Qt5 systray example. It behaves the same (but you cannot close it sanely after toggling..).
Comment 1 Konrad Materka 2019-10-14 14:01:23 UTC
This is not a KDE bug.

I tested Systray Example from Qt distribution (5.13.1), was working fine. I was able to reproduce using your example (python3), it is reproducible using qdbusviewer to.

Run qdbusviewer, then run your example. It will add new item (for example ":1.45"). Open it, then "StatusNotifierItem" -> "org.kde.StatusNotifierItem" -> "Method: Activate" or "Method: ContextMenu". It shoud do the action.

Now toggle the icon. Old item will be remove, new one added (for example ":1.46"). Now run the same method, Activate or ContextMenu. It will not work. This is probably a bug in PyQt5 or Qt5.
Comment 2 Hans-Peter Jansen 2019-10-14 15:34:09 UTC
Thanks for confirmation.

Will recheck with Qt 5.13.1.
Comment 3 Konrad Materka 2019-10-14 18:29:00 UTC
Sorry, I was too quick with the judge. This is a KDE error, already reported. This is a duplicate of BUG 365105.

*** This bug has been marked as a duplicate of bug 365105 ***