From d1f402294ee3993d617d9893aba8b00155c0910a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= Date: Thu, 21 Apr 2022 18:33:28 +0200 Subject: [PATCH] notification: Do not try to append snap name to desktop when it's a path --- libnotify/notification.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libnotify/notification.c b/libnotify/notification.c index d3f0755..e1d6532 100644 --- a/libnotify/notification.c +++ b/libnotify/notification.c @@ -485,7 +485,7 @@ try_prepend_desktop (const gchar *desktop) */ ret = try_prepend_path (desktop, g_getenv ("SNAP")); - if (ret == NULL) { + if (ret == NULL && strchr (desktop, G_DIR_SEPARATOR) == NULL) { const gchar *snap_name = g_getenv ("SNAP_NAME"); if (snap_name != NULL && snap_name[0] != '\0') {