diff --git a/Telegram/SourceFiles/platform/linux/linux_desktop_environment.cpp b/Telegram/SourceFiles/platform/linux/linux_desktop_environment.cpp index 158e6834c..16879097c 100644 --- a/Telegram/SourceFiles/platform/linux/linux_desktop_environment.cpp +++ b/Telegram/SourceFiles/platform/linux/linux_desktop_environment.cpp @@ -20,6 +20,8 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org */ #include "platform/linux/linux_desktop_environment.h" +#include + namespace Platform { namespace DesktopEnvironment { namespace { @@ -120,7 +122,8 @@ bool TryQtTrayIcon() { } bool PreferAppIndicatorTrayIcon() { - return IsXFCE() || IsUnity(); + return IsXFCE() || IsUnity() || + (IsGnome() && QDBusInterface("org.kde.StatusNotifierWatcher", "/").isValid()); } bool TryUnityCounter() { diff --git a/Telegram/gyp/qt.gypi b/Telegram/gyp/qt.gypi index a292c9676..67f7976e2 100644 --- a/Telegram/gyp/qt.gypi +++ b/Telegram/gyp/qt.gypi @@ -196,6 +196,7 @@ '<(qt_loc)/include', '<(qt_loc)/include/QtCore', '<(qt_loc)/include/QtGui', + '<(qt_loc)/include/QtDBus', '<(qt_loc)/include/QtCore/<(qt_version)', '<(qt_loc)/include/QtGui/<(qt_version)', '<(qt_loc)/include/QtCore/<(qt_version)/QtCore',