From e64f6f72667d1beccd5464ec4d915b66f6db329d Mon Sep 17 00:00:00 2001 From: Ilya Fedin Date: Thu, 12 Nov 2020 19:10:30 +0400 Subject: [PATCH] Since changing the ibus portal check, it is not compatible with snap anymore --- Telegram/SourceFiles/platform/linux/specific_linux.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/platform/linux/specific_linux.cpp b/Telegram/SourceFiles/platform/linux/specific_linux.cpp index fc5658557..61ce860be 100644 --- a/Telegram/SourceFiles/platform/linux/specific_linux.cpp +++ b/Telegram/SourceFiles/platform/linux/specific_linux.cpp @@ -1158,7 +1158,10 @@ void start() { // Since tdesktop is distributed in static binary form, // it makes sense to use ibus portal whenever it present // to ensure compatibility with the maximum range of distributions. - if (IsIBusPortalPresent()) { + if (AreQtPluginsBundled() + && !InFlatpak() + && !InSnap() + && IsIBusPortalPresent()) { LOG(("IBus portal is present! Using it.")); qputenv("IBUS_USE_PORTAL", "1"); }