Commit cb6596e6 authored by Adrien Plazas's avatar Adrien Plazas
Browse files

Merge branch 'phosh-setting' into 'pureos/sloppy'

appdata: Don't assume app IDs don't finish by .desktop

See merge request !6
parents ff1ed762 18817498
......@@ -473,6 +473,15 @@ gs_appstream_is_device_compatibility_forced (GsApp *app)
for (gint i = 0; ids[i]; i++) {
g_hash_table_add (ids_table, g_strdup (ids[i]));
g_hash_table_add (ids_table, g_strdup_printf ("%s.desktop", ids[i]));
if (g_str_has_suffix (ids[i], ".desktop")) {
gchar *id = g_strdup (ids[i]);
id[strlen (id) - 8] = '\0';
g_hash_table_add (ids_table, id);
}
else {
g_hash_table_add (ids_table, g_strdup_printf ("%s.desktop", ids[i]));
}
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment