Commit 46c2da70 authored by Saul Ibarra's avatar Saul Ibarra

Use system tray also on Unity


As of Ubuntu 14.04, it works well if the 'sni-qt' package is installed.
parent b62860d4
......@@ -92,7 +92,7 @@ class MainWindow(base_class, ui_class):
self.search_view.setCurrentWidget(self.search_list_panel)
# System tray
if QSystemTrayIcon.isSystemTrayAvailable() and not os.getenv('XDG_CURRENT_DESKTOP', '').lower().startswith('unity'):
if QSystemTrayIcon.isSystemTrayAvailable():
self.system_tray_icon = QSystemTrayIcon(QIcon(Resources.get('icons/blink.png')), self)
self.system_tray_icon.activated.connect(self._SH_SystemTrayIconActivated)
menu = QMenu(self)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment