Browse Source

Merge pull request #121 from francescortiz/master

make it work with KDE 5 (plasma)
tags/v0.9.0
Filipe Coelho 9 years ago
parent
commit
dea02f6421
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      src/systray.py

+ 3
- 0
src/systray.py View File

@@ -47,6 +47,9 @@ try:
from gi.repository import Gtk, AppIndicator3 as AppIndicator from gi.repository import Gtk, AppIndicator3 as AppIndicator


TrayEngine = "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"): 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 from PyKDE4.kdeui import KAction, KIcon, KMenu, KStatusNotifierItem


Loading…
Cancel
Save