/* Returns: a new #GDesktopAppInfo or NULL on error.  */
GDesktopAppInfo* g_desktop_app_info_new_from_filename(const char *filename)
/* Returns: a new #GDesktopAppInfo or NULL on error.  */
GDesktopAppInfo* g_desktop_app_info_new_from_filename(const char *filename)
{
  GDesktopAppInfo *info = NULL;
  info = g_object_new (G_TYPE_DESKTOP_APP_INFO, "filename", filename, NULL);
  if (!g_desktop_app_info_load_file (info))
    {
      g_object_unref (info);
      return NULL;
    }
  return info;
}