diff --git a/Telegram/SourceFiles/platform/linux/linux_libs.cpp b/Telegram/SourceFiles/platform/linux/linux_libs.cpp index 5b502039b9..372a012fbc 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) {