1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

Only use StatusNotifier on KDE5

This commit is contained in:
tux3 2015-02-24 10:18:49 +01:00
parent 286c963f5d
commit bee584bdb1
No known key found for this signature in database
GPG Key ID: 7E086DD661263264

View File

@ -38,7 +38,8 @@ SystemTrayIcon::SystemTrayIcon()
}
#endif
#ifdef ENABLE_SYSTRAY_STATUSNOTIFIER_BACKEND
else if (desktop == "kde")
else if (desktop == "kde"
&& getenv("KDE_SESSION_VERSION") == QString("5"))
{
qDebug() << "SystemTrayIcon: Using Status Notifier backend";
backendType = SystrayBackendType::StatusNotifier;