From cc3b499853449bde2980a04f8d35c841209741ab Mon Sep 17 00:00:00 2001 From: Alexander Schwinn Date: Tue, 28 Apr 2020 19:07:03 +0200 Subject: [PATCH] disable startup notification in wayland to prevent crashes (Bug #16769) --- libxfce4ui/xfce-spawn.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/libxfce4ui/xfce-spawn.c b/libxfce4ui/xfce-spawn.c index f5181df..02e3351 100644 --- a/libxfce4ui/xfce-spawn.c +++ b/libxfce4ui/xfce-spawn.c @@ -345,6 +345,13 @@ xfce_spawn_on_screen_with_child_watch (GdkScreen *screen, g_return_val_if_fail ((flags & G_SPAWN_DO_NOT_REAP_CHILD) == 0, FALSE); g_return_val_if_fail (error == NULL || *error == NULL, FALSE); + /* 'sn_display_new' crashes when used via wayland, so no startup notification support here */ + if (g_strcmp0 (g_getenv ("XDG_SESSION_TYPE"), "wayland") == 0) + { + g_warning ("startup notification not supported for wayland sessions"); + startup_notify = FALSE; + } + /* lookup the screen with the pointer */ if (screen == NULL) screen = xfce_gdk_screen_get_active (NULL); -- 2.26.2