summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Trevisan (Treviño) <mail@3v1n0.net>2022-04-21 18:33:28 +0200
committerMarco Trevisan (Treviño) <mail@3v1n0.net>2022-04-25 19:13:22 +0200
commitd21b8140a88c9e092b4c6263246c153889769213 (patch)
tree391005f6c65f439434b64550680ea7434c98673e
parentc4d5ea8baff20bd6594faa310b38e8d2feb2d54d (diff)
downloadlibnotify-d21b8140a88c9e092b4c6263246c153889769213.tar.gz
notification: Do not try to append snap name to desktop when it's a path
-rw-r--r--libnotify/notification.c2
1 files changed, 1 insertions, 1 deletions
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') {