m-mpris: Check variant type directly

This commit is contained in:
Zander Brown 2025-11-05 14:51:47 +00:00 committed by George Kiagiadakis
parent af7a951bd9
commit 58b48c0a8a

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;
}