Created attachment 5690
ensure thunar_file_list_get_applications() has the default application as the first element of the returned list
Nice find. Since thunar_file_list_get_applications() and its only consumer thunar_launcher_update_idle() are the only places that expect g_app_info_get_all_for_type() to have the default application as the first element, I don't think it's necessary to expose something like thunar_g_app_info_get_all_for_type(). Attached is a slightly revised patch that inlines the list reordering into thunar_file_list_get_applications().
Created attachment 5690 file_list_ get_application s() has the default application as the first element of the returned list
ensure thunar_
Nice find. Since thunar_ file_list_ get_application s() and its only consumer thunar_ launcher_ update_ idle() are the only places that expect g_app_info_ get_all_ for_type( ) to have the default application as the first element, I don't think it's necessary to expose something like thunar_ g_app_info_ get_all_ for_type( ). Attached is a slightly revised patch that inlines the list reordering into thunar_ file_list_ get_application s().