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 (#2660)
Signed-off-by: Marco Trevisan <mail@3v1n0.net> (github: 3v1n0)
This commit is contained in:
parent
59b0b0659a
commit
4518e94c8a
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user