[glib] appinfo: only rewrite recommended applications when adding non-default



commit 182fcff2ea2b8f183570d8c026a9ef4d2ec2afdf
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Thu Nov 18 18:49:32 2010 +0100

    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.

 gio/gdesktopappinfo.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gio/gdesktopappinfo.c b/gio/gdesktopappinfo.c
index 4a534f7..b98e6ac 100644
--- a/gio/gdesktopappinfo.c
+++ b/gio/gdesktopappinfo.c
@@ -1250,10 +1250,10 @@ update_mimeapps_list (const char  *desktop_id,
 	     add the current list of (not yet listed) apps before 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);
-	  
+
 	  for (l = system_list; l != NULL; l = l->next)
 	    {
 	      list[i++] = l->data; /* no strdup, taking ownership */



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]