From a1e60a3f20ef0b26e2bc778bc1a289a818706cf0 Mon Sep 17 00:00:00 2001 From: Ilya Fedin Date: Sat, 19 Nov 2022 01:12:56 +0400 Subject: [PATCH] Ensure GNotification is not autodetected in snap Snap reports it as present, but prevents the access and GNotification attempts to use portal that doesn't work in snap --- Telegram/SourceFiles/platform/linux/specific_linux.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/platform/linux/specific_linux.cpp b/Telegram/SourceFiles/platform/linux/specific_linux.cpp index 9f10e7bd3..0d03fe4ae 100644 --- a/Telegram/SourceFiles/platform/linux/specific_linux.cpp +++ b/Telegram/SourceFiles/platform/linux/specific_linux.cpp @@ -286,7 +286,7 @@ void LaunchGApplication() { }; if (OptionGApplication.value() - || gtkNotifications() + || (!KSandbox::isSnap() && gtkNotifications()) || (KSandbox::isFlatpak() && !freedesktopNotifications())) { Glib::signal_idle().connect_once([] { const auto appId = QGuiApplication::desktopFileName()