diff --git a/thunar/thunar-launcher.c b/thunar/thunar-launcher.c index f479cf9..65f5c4d 100644 --- a/thunar/thunar-launcher.c +++ b/thunar/thunar-launcher.c @@ -546,6 +546,14 @@ thunar_launcher_execute_files (ThunarLauncher *launcher, +static guint +thunar_launcher_g_app_info_hash (const void *app_info) +{ + return g_str_hash (g_app_info_get_executable (G_APP_INFO (app_info))); +} + + + static void thunar_launcher_open_files (ThunarLauncher *launcher, GList *files) @@ -556,7 +564,7 @@ thunar_launcher_open_files (ThunarLauncher *launcher, GList *lp; /* allocate a hash table to associate applications to URIs */ - applications = g_hash_table_new_full (g_direct_hash, + applications = g_hash_table_new_full (thunar_launcher_g_app_info_hash, (GEqualFunc) g_app_info_equal, (GDestroyNotify) g_object_unref, (GDestroyNotify) thunar_g_file_list_free);