Browse Source

Disable special systray stuff for now

tags/v0.9.0
falkTX 13 years ago
parent
commit
57355b071d
1 changed files with 8 additions and 9 deletions
  1. +8
    -9
      src/systray.py

+ 8
- 9
src/systray.py View File

@@ -23,18 +23,17 @@ from PyQt4.QtGui import QAction, QMenu, QIcon, QSystemTrayIcon


global TrayEngine, TrayParent global TrayEngine, TrayParent


try:
#try:
#if (os.getenv("KDE_FULL_SESSION") != None): #if (os.getenv("KDE_FULL_SESSION") != None):
#from PyKDE4.kdeui import KAction, KIcon, KMenu, KStatusNotifierItem #from PyKDE4.kdeui import KAction, KIcon, KMenu, KStatusNotifierItem
#TrayEngine = "KDE" #TrayEngine = "KDE"
if (os.getenv("DESKTOP_SESSION") in ("ubuntu", "ubuntu-2d")):
from gi.repository import AppIndicator3, Gtk
TrayEngine = "AppIndicator"
else:
TrayEngine = "Qt"
except:
TrayEngine = "Qt"

#if (os.getenv("DESKTOP_SESSION") in ("ubuntu", "ubuntu-2d")):
#from gi.repository import AppIndicator3, Gtk
#TrayEngine = "AppIndicator"
#else:
#TrayEngine = "Qt"
#except:
TrayEngine = "Qt"
TrayParent = "None" TrayParent = "None"


# Get Icon from user theme, using our own as backup (Oxygen) # Get Icon from user theme, using our own as backup (Oxygen)


Loading…
Cancel
Save