diff options
Diffstat (limited to 'network/qTox/patches/use_desktop_fallback_variable.diff')
-rw-r--r-- | network/qTox/patches/use_desktop_fallback_variable.diff | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/network/qTox/patches/use_desktop_fallback_variable.diff b/network/qTox/patches/use_desktop_fallback_variable.diff new file mode 100644 index 0000000000..6176029e8c --- /dev/null +++ b/network/qTox/patches/use_desktop_fallback_variable.diff @@ -0,0 +1,12 @@ +--- qTox-3223707/src/widget/systemtrayicon.cpp.orig 2015-04-05 22:37:15.000000000 +0200 ++++ qTox-3223707/src/widget/systemtrayicon.cpp 2015-04-16 02:22:08.955184668 +0200 +@@ -9,6 +9,9 @@ + 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 |