mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-04-22 07:09:16 +02:00
appinfo: only rewrite recommended applications when adding non-default
Otherwise you break the fallback + recommended distinction for a content type, as you end up adding support for a given content type to *all* of the applications claiming to support the supertype.
This commit is contained in:
parent
94c67d8420
commit
182fcff2ea
@ -1250,7 +1250,7 @@ update_mimeapps_list (const char *desktop_id,
|
|||||||
add the current list of (not yet listed) apps before it. */
|
add the current list of (not yet listed) apps before it. */
|
||||||
|
|
||||||
list[i] = NULL; /* Terminate current list so we can use it */
|
list[i] = NULL; /* Terminate current list so we can use it */
|
||||||
system_list = get_all_desktop_entries_for_mime_type (content_type, (const char **)list);
|
system_list = get_all_desktop_entries_for_mime_type (content_type, (const char **)list, FALSE);
|
||||||
|
|
||||||
list = g_renew (char *, list, 1 + length + g_list_length (system_list) + 1);
|
list = g_renew (char *, list, 1 + length + g_list_length (system_list) + 1);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user