From b874f31b0db99d376a2de5b1b29aff00b08a3b7f Mon Sep 17 00:00:00 2001 From: Mario Preksavec Date: Mon, 4 May 2015 01:03:58 +0200 Subject: [PATCH] Fallback XFCE detection --- src/widget/systemtrayicon.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/widget/systemtrayicon.cpp b/src/widget/systemtrayicon.cpp index 343a48071..6b4043e86 100644 --- a/src/widget/systemtrayicon.cpp +++ b/src/widget/systemtrayicon.cpp @@ -9,6 +9,8 @@ SystemTrayIcon::SystemTrayIcon() { QString desktop = getenv("XDG_CURRENT_DESKTOP"); + if (desktop.isEmpty()) + desktop = getenv("DESKTOP_SESSION"); desktop = desktop.toLower(); if (false); #ifdef ENABLE_SYSTRAY_UNITY_BACKEND