[PATCH] unalias MIME types in application cache



The attached patch should fix bug 314952 [1] by unaliasing MIME types
before inserting the associated applications into the cache.

[1] http://bugzilla.gnome.org/show_bug.cgi?id=314952

-- 
Christian Neumair <chris gnome-de org>
Index: libgnomevfs/gnome-vfs-mime-info-cache.c
===================================================================
RCS file: /cvs/gnome/gnome-vfs/libgnomevfs/gnome-vfs-mime-info-cache.c,v
retrieving revision 1.21
diff -u -p -r1.21 gnome-vfs-mime-info-cache.c
--- libgnomevfs/gnome-vfs-mime-info-cache.c	2 Mar 2006 17:04:31 -0000	1.21
+++ libgnomevfs/gnome-vfs-mime-info-cache.c	6 Apr 2006 14:30:44 -0000
@@ -195,7 +195,7 @@ gnome_vfs_mime_info_cache_dir_init (Gnom
 		}
 
 		gnome_vfs_mime_info_cache_dir_add_desktop_entries (dir,
-								   mime_types[i],
+								   xdg_mime_unalias_mime_type (mime_types[i]),
 								   desktop_file_ids);
 
 		g_strfreev (desktop_file_ids);
@@ -283,7 +283,7 @@ gnome_vfs_mime_info_cache_dir_init_defau
 		}
 
 		g_hash_table_replace (dir->defaults_list_map,
-				      g_strdup (mime_types[i]),
+				      g_strdup (xdg_mime_unalias_mime_type (mime_types[i])),
 				      desktop_file_ids);
 	}
 


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