get_default_for_uri_scheme


Description:

public abstract AppInfo get_default_for_uri_scheme (string uri_scheme)

Gets the default application for launching applications using this URI scheme for a particular [iface@GioUnix.

Note:

The [iface@GioUnix.DesktopAppInfoLookup] interface is deprecated and unused by GIO.

DesktopAppInfoLookup] implementation.

The [iface@GioUnix.DesktopAppInfoLookup] interface and this function is used to implement [func@Gio.AppInfo.get_default_for_uri_scheme] backends in a GIO module. There is no reason for applications to use it directly. Applications should use [ func@Gio.AppInfo.get_default_for_uri_scheme].

Parameters:

this

a [iface@GioUnix.DesktopAppInfoLookup]

uri_scheme

a string containing a URI scheme.

Returns:

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