1
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-03-25 04:38:23 +00:00

main-window-linux: try to use AppIndicator in Unity ()

Signed-off-by: Marco Trevisan <mail@3v1n0.net> (github: 3v1n0)
This commit is contained in:
Marco Trevisan 2017-01-24 11:44:46 +01:00 committed by John Preston
parent 59b0b0659a
commit 4518e94c8a

View File

@ -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);