m-mpris: Check variant type directly

This commit is contained in:
Zander Brown 2025-11-05 14:51:47 +00:00
parent 6c4342123b
commit 91e07861dd
No known key found for this signature in database
GPG key ID: 25EE3C36E31E5F84

View file

@ -238,7 +238,7 @@ static void item_desktop_entry_cb (GObject *source_object, GAsyncResult* res, gp
}
g_variant_get (result, "(v)", &value);
if (!g_str_equal(g_variant_get_type_string (value), "s")) {
if (!g_variant_is_of_type (value, G_VARIANT_TYPE_STRING)) {
wp_info ("%p: bad value for DesktopEntry for '%s'", update->players, update->bus_name);
return;
}