get_default_for_type


Description:

public static AppInfo? get_default_for_type (string content_type, bool must_support_uris)

Gets the default [iface@Gio.

AppInfo] for a given content type.

Parameters:

content_type

the content type to find a [iface@Gio.AppInfo] for

must_support_uris

if `TRUE`, the [iface@Gio.AppInfo] is expected to support URIs

Returns:

[iface@Gio.AppInfo] for given content_type or `NULL` on error.