Gio.AppInfo.get_recommended_for_type

function get_recommended_for_type(content_type: String): Array(Gio.AppInfo) {
    // Gjs wrapper for g_app_info_get_recommended_for_type()
}
  

Gets a list of recommended #GAppInfos for a given content type, i.e. those applications which claim to support the given content type exactly, and not by MIME type subclassing. Note that the first application of the list is the last used one, i.e. the last one for which Gio.AppInfo.prototype.set_as_last_used_for_type has been called.

Since 2.28

content_type

the content type to find a Gio.AppInfo for

Returns

GLib.List of #GAppInfos for given content_type or null on error.