From 2dadf7ce5709362c57d6603fc6968d785a7c49fe Mon Sep 17 00:00:00 2001 From: Marco Trevisan Date: Wed, 23 Nov 2016 10:25:11 +0100 Subject: [PATCH] linux-libs: parse XDG_CURRENT_DESKTOP as colon separated list (#2663) Signed-off-by: Marco Trevisan (github: 3v1n0) --- Telegram/SourceFiles/platform/linux/linux_libs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/platform/linux/linux_libs.cpp b/Telegram/SourceFiles/platform/linux/linux_libs.cpp index a9731ce593..f8abb51d4d 100644 --- a/Telegram/SourceFiles/platform/linux/linux_libs.cpp +++ b/Telegram/SourceFiles/platform/linux/linux_libs.cpp @@ -271,7 +271,7 @@ void start() { } #ifndef TDESKTOP_DISABLE_UNITY_INTEGRATION - if (QString(getenv("XDG_CURRENT_DESKTOP")).toLower() == qstr("unity")) { + if (QString(getenv("XDG_CURRENT_DESKTOP")).toLower().split(':').contains(qstr("unity"))) { QLibrary lib_unity(qstr("unity"), 9, 0); loadLibrary(lib_unity, "unity", 9);