From df0d7dcc34c627046f1eb1068cbd31c5df5a3439 Mon Sep 17 00:00:00 2001 From: Francesc Ortiz Date: Tue, 16 Feb 2016 15:28:45 +0100 Subject: [PATCH] make it work with KDE 5 --- src/systray.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/systray.py b/src/systray.py index bdd2b18..1ec8dfc 100644 --- a/src/systray.py +++ b/src/systray.py @@ -47,6 +47,9 @@ try: from gi.repository import Gtk, AppIndicator3 as AppIndicator TrayEngine = "AppIndicator" + + elif os.getenv("KDE_SESSION_VERSION") >= 5: + TrayEngine = "Qt" elif (os.getenv("KDE_FULL_SESSION") or os.getenv("DESKTOP_SESSION") == "kde-plasma") and not os.path.exists("/etc/debian_version"): from PyKDE4.kdeui import KAction, KIcon, KMenu, KStatusNotifierItem