From 5c92c3b89d355253c4790655a13559961f866e5f Mon Sep 17 00:00:00 2001 From: tux3 Date: Wed, 25 Feb 2015 11:30:15 +0100 Subject: [PATCH] Use GTK status icon on Gnome Instead of Unity, which has less features and is a hack --- src/widget/systemtrayicon.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/widget/systemtrayicon.cpp b/src/widget/systemtrayicon.cpp index 0ae4e957c..c8c1e15f2 100644 --- a/src/widget/systemtrayicon.cpp +++ b/src/widget/systemtrayicon.cpp @@ -12,7 +12,7 @@ SystemTrayIcon::SystemTrayIcon() desktop = desktop.toLower(); if (false); #ifdef ENABLE_SYSTRAY_UNITY_BACKEND - else if (desktop == "unity" || desktop.contains("gnome")) + else if (desktop == "unity") { qDebug() << "SystemTrayIcon: Using Unity backend"; gtk_init(nullptr, nullptr); @@ -38,7 +38,7 @@ SystemTrayIcon::SystemTrayIcon() } #endif #ifdef ENABLE_SYSTRAY_GTK_BACKEND - else if (desktop == "xfce" || (desktop == "kde" + else if (desktop == "xfce" || desktop.contains("gnome") || (desktop == "kde" && getenv("KDE_SESSION_VERSION") == QString("4"))) { qDebug() << "SystemTrayIcon: Using GTK backend";