From 13888401faf592c24e2a57077703f39dd3c56de6 Mon Sep 17 00:00:00 2001 From: Carl Schwan Date: Thu, 27 May 2021 17:39:30 +0200 Subject: [PATCH] Don't use SystemTray integration on GNOME and ElementaryOS These platforms don't support it so hiding NeoChat in the tray in these platforms is not a good idea and other a rather poor user experience. --- src/controller.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/controller.cpp b/src/controller.cpp index e58894d7f..79d653707 100644 --- a/src/controller.cpp +++ b/src/controller.cpp @@ -429,7 +429,8 @@ bool Controller::supportSystemTray() const #ifdef Q_OS_ANDROID return false; #else - return true; + QString de = getenv("XDG_CURRENT_DESKTOP"); + return de != QStringLiteral("GNOME") && de != QStringLiteral("Pantheon"); #endif }