the command line to use
the application name, or NULL to use commandline
flags that can specify details of the created Gio.AppInfo
Gets a list of all of the applications currently registered on this system.
For desktop files, this includes applications that have
NoDisplay=true
set or are excluded from display by means of
OnlyShowIn
or NotShowIn.
See Gio.AppInfo.should_show.
The returned list does not include applications which have the
Hidden key
set.
Gets a list of all Gio.AppInfos for a given content type, including the recommended and fallback Gio.AppInfos. See Gio.AppInfo.get_recommended_for_type and Gio.AppInfo.get_fallback_for_type.
the content type to find a Gio.AppInfo for
Gets the default Gio.AppInfo for a given content type.
the content type to find a Gio.AppInfo for
if TRUE, the Gio.AppInfo is expected to support URIs
Asynchronously gets the default Gio.AppInfo for a given content type.
the content type to find a Gio.AppInfo for
if TRUE, the Gio.AppInfo is expected to support URIs
Optionalcancellable: Gio.CancellableOptionalcallback: AsyncReadyCallback<Gio.AppInfo>a Gio.AsyncReadyCallback to call when the request is done
Finishes a default Gio.AppInfo lookup started by Gio.AppInfo.get_default_for_type_async.
If no #Gio.AppInfo is found, then error will be set to
Gio.IOErrorEnum.NOT_FOUND.
the async result
Asynchronously 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.
a string containing a URI scheme.
Optionalcancellable: Gio.CancellableOptionalcallback: AsyncReadyCallback<Gio.AppInfo>a Gio.AsyncReadyCallback to call when the request is done
Finishes a default Gio.AppInfo lookup started by Gio.AppInfo.get_default_for_uri_scheme_async.
If no Gio.AppInfo is found, then error will be set to
Gio.IOErrorEnum.NOT_FOUND.
the async result
Gets a list of fallback Gio.AppInfos for a given content type, i.e. those applications which claim to support the given content type by MIME type subclassing and not directly.
the content type to find a Gio.AppInfo for
Gets a list of recommended Gio.AppInfos 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.set_as_last_used_for_type has been called.
the content type to find a Gio.AppInfo for
Utility function that launches the default application registered to handle the specified uri. Synchronous I/O is done on the uri to detect the type of the file if required.
The D-Bus–activated applications don’t have to be started if your application terminates too soon after this function. To prevent this, use Gio.AppInfo.launch_default_for_uri_async instead.
the uri to show
Optionalcontext: Gio.AppLaunchContextoptional launch context
Async version of Gio.AppInfo.launch_default_for_uri.
This version is useful if you are interested in receiving error information in the case where the application is sandboxed and the portal may present an application chooser dialog to the user.
This is also useful if you want to be sure that the D-Bus–activated applications are really started before termination and if you are interested in receiving error information from their activation.
the uri to show
Optionalcontext: Gio.AppLaunchContextoptional launch context
Optionalcancellable: Gio.CancellableOptionalcallback: AsyncReadyCallback<Gio.AppInfo>a Gio.AsyncReadyCallback to call when the request is done
Finishes an asynchronous launch-default-for-uri operation.
the async result
Removes all changes to the type associations done by Gio.AppInfo.set_as_default_for_type, Gio.AppInfo.set_as_default_for_extension, Gio.AppInfo.add_supports_type or Gio.AppInfo.remove_supports_type.
a content type
Creates a new Gio.AppInfo from the given information.
Note that for
commandline, the quoting rules of theExeckey of the freedesktop.org Desktop Entry Specification are applied. For example, if thecommandlinecontains percent-encoded URIs, the percent-character must be doubled in order to prevent it from being swallowed byExeckey unquoting. See the specification for exact quoting rules.