Priority: Not Evaluated
Affects Version/s: 5.15.2
Fix Version/s: None
when instanciating QSystemTrayIcon with a QIcon initialized from a SVG file, it does not render, but it still is clickable and shows a menu. You can find a screenshot at this related issue.
Weirdly, the issue occurs only inside plasma, but not inside e.g. awesome-wm on the same system. Furthermore, the issue occurs only with the arch's system package of PyQt5, but not with the one installed using `pip install` into a virtualenv (same version of python/pyqt otherwise).
Example python code:
A workaround is to convert the icon to QPixmap and back:
Furthermore, if executing the program from a remote login session (SSH, setting DISPLAY=:0 to the running session) the icon shows correctly inside plasma even without the workaround, and with using arch's system python/pyqt. However, not anymore after setting the environment variable KDE_FULL_SESSION to any value.
On the other hand, when running inside plasma, the presence of KDE_FULL_SESSION and other KDE related variables does not prevent the issue, and setting them does not cause the behaviour when running the PyPI version.
The archlinux packaging scripts are easy to obtain from archlinux.org, e.g. here the one for python-pyqt5 and then looking at Source Files -> PKGBUILD. The site also links all the build and runtime dependencies.