From 296c800b391784dd48676401e760a24298aa542c Mon Sep 17 00:00:00 2001 From: John Preston Date: Fri, 10 Feb 2017 20:45:11 +0300 Subject: [PATCH] Load libunity in all DEs to set dock icon counter. #956 Before we tried loading and using libunity only in Unity DE. --- Telegram/SourceFiles/platform/linux/linux_libs.cpp | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/Telegram/SourceFiles/platform/linux/linux_libs.cpp b/Telegram/SourceFiles/platform/linux/linux_libs.cpp index 5b502039b..372a012fb 100644 --- a/Telegram/SourceFiles/platform/linux/linux_libs.cpp +++ b/Telegram/SourceFiles/platform/linux/linux_libs.cpp @@ -271,14 +271,12 @@ void start() { } #ifndef TDESKTOP_DISABLE_UNITY_INTEGRATION - if (QString(getenv("XDG_CURRENT_DESKTOP")).toLower().split(':').contains(qstr("unity"))) { - QLibrary lib_unity(qstr("unity"), 9, 0); - loadLibrary(lib_unity, "unity", 9); + QLibrary lib_unity(qstr("unity"), 9, 0); + loadLibrary(lib_unity, "unity", 9); - load(lib_unity, "unity_launcher_entry_get_for_desktop_id", unity_launcher_entry_get_for_desktop_id); - load(lib_unity, "unity_launcher_entry_set_count", unity_launcher_entry_set_count); - load(lib_unity, "unity_launcher_entry_set_count_visible", unity_launcher_entry_set_count_visible); - } + load(lib_unity, "unity_launcher_entry_get_for_desktop_id", unity_launcher_entry_get_for_desktop_id); + load(lib_unity, "unity_launcher_entry_set_count", unity_launcher_entry_set_count); + load(lib_unity, "unity_launcher_entry_set_count_visible", unity_launcher_entry_set_count_visible); #endif // !TDESKTOP_DISABLE_UNITY_INTEGRATION if (gtkLoaded) {