notification: Do not try to append snap name to desktop when it's a path
This commit is contained in:
parent
c4d5ea8baf
commit
d21b8140a8
|
@ -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') {
|
||||
|
|
Loading…
Reference in New Issue