Skip to content

Commit ec44417

Browse files
committed
Add workaround for trayicon not showing in plasma
Resolves #8
1 parent 372652c commit ec44417

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

steam_acolyte/window.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,12 @@ def _on_locked(self):
9292
@trace.method
9393
def show_trayicon(self):
9494
"""Create and show the tray icon."""
95-
self.trayicon = QSystemTrayIcon(self.theme.window_icon)
95+
# The conversion to QPixmap and back to QIcon is needed to prevent a
96+
# bug that leads to the icon not being displayed in plasma. See:
97+
# - https://github.com/coldfix/steam-acolyte/issues/8
98+
# - https://bugreports.qt.io/browse/QTBUG-53550
99+
icon = QIcon(self.theme.window_icon.pixmap(64))
100+
self.trayicon = QSystemTrayIcon(icon)
96101
self.trayicon.setVisible(True)
97102
self.trayicon.setToolTip(
98103
"acolyte - lightweight steam account manager")

0 commit comments

Comments
 (0)