Gio.AppInfo.get_default_for_uri_scheme

function get_default_for_uri_scheme(uri_scheme: String): Gio.AppInfo {
    // Gjs wrapper for g_app_info_get_default_for_uri_scheme()
}
  

Gets the default application for handling URIs with the given URI scheme. A URI scheme is the initial part of the URI, up to but not including the ':', e.g. "http", "ftp" or "sip".

uri_scheme

a string containing a URI scheme.

Returns

Gio.AppInfo for given uri_scheme or null on error.