/* Returns: (transfer full): #GAppInfo for given @uri_scheme or NULL on error.  */
GAppInfo* g_app_info_get_default_for_uri_scheme(const char *uri_scheme)
/* Returns: (transfer full): #GAppInfo for given @uri_scheme or NULL on error.  */
GAppInfo* g_app_info_get_default_for_uri_scheme(const char *uri_scheme)
{
  GAppInfo *app_info;
  char *content_type, *scheme_down;
  scheme_down = g_ascii_strdown (uri_scheme, -1);
  content_type = g_strdup_printf ("x-scheme-handler/%s", scheme_down);
  g_free (scheme_down);
  app_info = g_app_info_get_default_for_type (content_type, FALSE);
  g_free (content_type);
  return app_info;
}