From 4518e94c8a18cfa57c8faf4d7ed2b4ab768870bb Mon Sep 17 00:00:00 2001 From: Marco Trevisan Date: Tue, 24 Jan 2017 11:44:46 +0100 Subject: [PATCH] main-window-linux: try to use AppIndicator in Unity (#2660) Signed-off-by: Marco Trevisan (github: 3v1n0) --- Telegram/SourceFiles/platform/linux/main_window_linux.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/platform/linux/main_window_linux.cpp b/Telegram/SourceFiles/platform/linux/main_window_linux.cpp index 774585487..46ae3041d 100644 --- a/Telegram/SourceFiles/platform/linux/main_window_linux.cpp +++ b/Telegram/SourceFiles/platform/linux/main_window_linux.cpp @@ -379,7 +379,7 @@ bool MainWindow::psHasNativeNotifications() { void MainWindow::LibsLoaded() { QStringList cdesktop = QString(getenv("XDG_CURRENT_DESKTOP")).toLower().split(':'); noQtTrayIcon = (cdesktop.contains(qstr("pantheon"))) || (cdesktop.contains(qstr("gnome"))); - tryAppIndicator = cdesktop.contains(qstr("xfce")); + tryAppIndicator = (cdesktop.contains(qstr("xfce")) || cdesktop.contains(qstr("unity"))); if (noQtTrayIcon) cSetSupportTray(false);