Virtualvfunc_Adds a content type to the application information to indicate the application is capable of opening files with the given content type.
a string.
Virtualvfunc_Obtains the information whether the Gio.AppInfo can be deleted. See Gio.AppInfo.delete.
Virtualvfunc_Checks if a supported content type can be removed from an application.
Virtualvfunc_Tries to delete a Gio.AppInfo.
On some platforms, there may be a difference between user-defined Gio.AppInfos which can be deleted, and system-wide ones which cannot. See Gio.AppInfo.can_delete.
Virtualvfunc_Creates a duplicate of a Gio.AppInfo.
Virtualvfunc_Checks if two Gio.AppInfos are equal.
Note that the check may not compare each individual field, and only does an identity check. In case detecting changes in the contents is needed, program code must additionally compare relevant fields.
the second Gio.AppInfo.
Virtualvfunc_Gets the commandline with which the application will be started.
Virtualvfunc_Gets a human-readable description of an installed application.
Virtualvfunc_Gets the display name of the application. The display name is often more descriptive to the user than the name itself.
Virtualvfunc_Gets the executable’s name for the installed application.
This is intended to be used for debugging or labelling what program is going to be run. To launch the executable, use Gio.AppInfo.launch and related functions, rather than spawning the return value from this function.
Virtualvfunc_Virtualvfunc_Gets the ID of an application. An id is a string that identifies the application. The exact format of the id is platform dependent. For instance, on Unix this is the desktop file id from the xdg menu specification.
Note that the returned ID may be NULL, depending on how the appinfo has
been constructed.
Virtualvfunc_Gets the installed name of the application.
Virtualvfunc_Retrieves the list of content types that app_info claims to support.
If this information is not provided by the environment, this function
will return NULL.
This function does not take in consideration associations added with Gio.AppInfo.add_supports_type, but only those exported directly by the application.
Virtualvfunc_Launches the application. Passes files to the launched application
as arguments, using the optional context to get information
about the details of the launcher (like what screen it is on).
On error, error will be set accordingly.
To launch the application without arguments pass a NULL files list.
Note that even if the launch is successful the application launched can fail to start if it runs into problems during startup. There is no way to detect this.
Some URIs can be changed when passed through a GFile (for instance unsupported URIs with strange formats like mailto:), so if you have a textual URI you want to pass in as argument, consider using Gio.AppInfo.launch_uris instead.
The launched application inherits the environment of the launching process, but it can be modified with Gio.AppLaunchContext.setenv and Gio.AppLaunchContext.unsetenv.
On UNIX, this function sets the GIO_LAUNCHED_DESKTOP_FILE
environment variable with the path of the launched desktop file and
GIO_LAUNCHED_DESKTOP_FILE_PID to the process id of the launched
process. This can be used to ignore GIO_LAUNCHED_DESKTOP_FILE,
should it be inherited by further processes. The DISPLAY,
XDG_ACTIVATION_TOKEN and DESKTOP_STARTUP_ID environment
variables are also set, based on information provided in context.
Optionalfiles: Gio.File[]a list of Gio.File objects
Optionalcontext: Gio.AppLaunchContextthe launch context
Virtualvfunc_Launches the application. This passes the uris to the launched application
as arguments, using the optional context to get information
about the details of the launcher (like what screen it is on).
On error, error will be set accordingly. If the application only supports
one URI per invocation as part of their command-line, multiple instances
of the application will be spawned.
To launch the application without arguments pass a NULL uris list.
Note that even if the launch is successful the application launched can fail to start if it runs into problems during startup. There is no way to detect this.
Optionaluris: string[]a list of URIs to launch.
Optionalcontext: Gio.AppLaunchContextthe launch context
Virtualvfunc_Async version of Gio.AppInfo.launch_uris.
The callback is invoked immediately after the application launch, but it
waits for activation in case of D-Bus–activated applications and also provides
extended error information for sandboxed applications, see notes for
Gio.AppInfo.launch_default_for_uri_async.
Optionaluris: string[]a list of URIs to launch.
Optionalcontext: Gio.AppLaunchContextthe launch context
Optionalcancellable: Gio.CancellableOptionalcallback: AsyncReadyCallback<Gio.AppInfo.Interface>a Gio.AsyncReadyCallback to call when the request is done
Virtualvfunc_Finishes a Gio.AppInfo.launch_uris_async operation.
the async result
Virtualvfunc_Removes a supported type from an application, if possible.
a string.
Virtualvfunc_Sets the application as the default handler for the given file extension.
a string containing the file extension (without the dot).
Virtualvfunc_Sets the application as the default handler for a given type.
the content type.
Virtualvfunc_Sets the application as the last used application for a given type. This will make the application appear as first in the list returned by Gio.AppInfo.get_recommended_for_type, regardless of the default application for that content type.
the content type.
Virtualvfunc_Checks if the application info should be shown in menus that list available applications.
Virtualvfunc_Checks if the application accepts files as arguments.
Virtualvfunc_Checks if the application supports reading files and directories from URIs.
Interface for implementing AppInfo. Contains only the virtual methods that need to be implemented.