Companion

object Companion

Properties

Link copied to clipboard
open val type: <Error class: unknown class><AppInfo>

Functions

Link copied to clipboard
fun createFromCommandline(commandline: String, applicationName: String? = null, flags: AppInfoCreateFlags): <Error class: unknown class><AppInfo>

Creates a new #GAppInfo from the given information.

Link copied to clipboard
fun getAll(): <Error class: unknown class>

Gets a list of all of the applications currently registered on this system.

Link copied to clipboard
fun getAllForType(contentType: String): <Error class: unknown class>

Gets a list of all #GAppInfos for a given content type, including the recommended and fallback #GAppInfos. See g_app_info_get_recommended_for_type() and g_app_info_get_fallback_for_type().

Link copied to clipboard
fun getDefaultForType(contentType: String, mustSupportUris: Boolean): AppInfo?

Gets the default #GAppInfo for a given content type.

Link copied to clipboard

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".

Link copied to clipboard
fun getFallbackForType(contentType: String): <Error class: unknown class>

Gets a list of fallback #GAppInfos for a given content type, i.e. those applications which claim to support the given content type by MIME type subclassing and not directly.

Link copied to clipboard
fun getRecommendedForType(contentType: String): <Error class: unknown class>

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 g_app_info_set_as_last_used_for_type() has been called.

Link copied to clipboard
fun launchDefaultForUri(uri: String, context: AppLaunchContext? = null): <Error class: unknown class><Boolean>

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.

Link copied to clipboard
fun launchDefaultForUriAsync(uri: String, context: AppLaunchContext? = null, cancellable: Cancellable? = null, callback: AsyncReadyCallback)

Async version of g_app_info_launch_default_for_uri().

Link copied to clipboard
fun launchDefaultForUriFinish(result: AsyncResult): <Error class: unknown class><Boolean>

Finishes an asynchronous launch-default-for-uri operation.

Link copied to clipboard
fun resetTypeAssociations(contentType: String)

Removes all changes to the type associations done by g_app_info_set_as_default_for_type(), g_app_info_set_as_default_for_extension(), g_app_info_add_supports_type() or g_app_info_remove_supports_type().

Link copied to clipboard
fun wrap(pointer: <Error class: unknown class><<Error class: unknown class>>): AppInfo