[libnotify] notification: Do not try to append snap name to desktop when it's a path
- From: Marco Trevisan <marcotrevi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libnotify] notification: Do not try to append snap name to desktop when it's a path
- Date: Mon, 25 Apr 2022 17:13:53 +0000 (UTC)
commit d21b8140a88c9e092b4c6263246c153889769213
Author: Marco Trevisan (TreviƱo) <mail 3v1n0 net>
Date: Thu Apr 21 18:33:28 2022 +0200
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 be8bfac..d0cb739 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') {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]