AppInfo.getDefaultForType

gio.app_info.AppInfo getDefaultForType(string contentType, bool mustSupportUris)

Gets the default #GAppInfo for a given content type.

Parameters

contentTypethe content type to find a #GAppInfo for
mustSupportUrisif true, the #GAppInfo is expected to support URIs

Returns

#GAppInfo for given content_type or

null on error.