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
This commit is contained in:
Ilya Fedin 2022-11-19 01:12:56 +04:00 committed by John Preston
parent f7971733f4
commit a1e60a3f20

View file

@ -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()