notification: Do not try to append snap name to desktop when it's a path

This commit is contained in:
Marco Trevisan (Treviño) 2022-04-21 18:33:28 +02:00
parent c4d5ea8baf
commit d21b8140a8
1 changed files with 1 additions and 1 deletions

View File

@ -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') {