AppInfoIfaceProxy

Proxy object for Gio.AppInfo interface when a GObject has no applicable D binding

class AppInfoIfaceProxy : IfaceProxy , AppInfo {}

Mixed In Members

From mixin AppInfoT!()

addSupportsType
bool addSupportsType(string contentType)

Adds a content type to the application information to indicate the application is capable of opening files with the given content type.

canDelete
bool canDelete()

Obtains the information whether the #GAppInfo can be deleted. See gio.app_info.AppInfo.delete_.

canRemoveSupportsType
bool canRemoveSupportsType()

Checks if a supported content type can be removed from an application.

delete_
bool delete_()

Tries to delete a #GAppInfo.

dup
gio.app_info.AppInfo dup()

Creates a duplicate of a #GAppInfo.

equal
bool equal(gio.app_info.AppInfo appinfo2)

Checks if two #GAppInfos are equal.

getCommandline
string getCommandline()

Gets the commandline with which the application will be started.

getDescription
string getDescription()

Gets a human-readable description of an installed application.

getDisplayName
string getDisplayName()

Gets the display name of the application. The display name is often more descriptive to the user than the name itself.

getExecutable
string getExecutable()

Gets the executable's name for the installed application.

getIcon
gio.icon.Icon getIcon()

Gets the icon for the application.

getId
string getId()

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.

getName
string getName()

Gets the installed name of the application.

getSupportedTypes
string[] getSupportedTypes()

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.app_info.AppInfo.addSupportsType, but only those exported directly by the application.

launch
bool launch(gio.file.File[] files, gio.app_launch_context.AppLaunchContext context)

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.

launchUris
bool launchUris(string[] uris, gio.app_launch_context.AppLaunchContext context)

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.

launchUrisAsync
void launchUrisAsync(string[] uris, gio.app_launch_context.AppLaunchContext context, gio.cancellable.Cancellable cancellable, gio.types.AsyncReadyCallback callback)

Async version of gio.app_info.AppInfo.launchUris.

launchUrisFinish
bool launchUrisFinish(gio.async_result.AsyncResult result)

Finishes a gio.app_info.AppInfo.launchUrisAsync operation.

removeSupportsType
bool removeSupportsType(string contentType)

Removes a supported type from an application, if possible.

setAsDefaultForExtension
bool setAsDefaultForExtension(string extension)

Sets the application as the default handler for the given file extension.

setAsDefaultForType
bool setAsDefaultForType(string contentType)

Sets the application as the default handler for a given type.

setAsLastUsedForType
bool setAsLastUsedForType(string contentType)

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.app_info.AppInfo.getRecommendedForType, regardless of the default application for that content type.

shouldShow
bool shouldShow()

Checks if the application info should be shown in menus that list available applications.

supportsFiles
bool supportsFiles()

Checks if the application accepts files as arguments.

supportsUris
bool supportsUris()

Checks if the application supports reading files and directories from URIs.

Inherited Members

From AppInfo

createFromCommandline
gio.app_info.AppInfo createFromCommandline(string commandline, string applicationName, gio.types.AppInfoCreateFlags flags)

Creates a new #GAppInfo from the given information.

getAll
gio.app_info.AppInfo[] getAll()

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

getAllForType
gio.app_info.AppInfo[] getAllForType(string contentType)

Gets a list of all #GAppInfos for a given content type, including the recommended and fallback #GAppInfos. See gio.app_info.AppInfo.getRecommendedForType and gio.app_info.AppInfo.getFallbackForType.

getDefaultForType
gio.app_info.AppInfo getDefaultForType(string contentType, bool mustSupportUris)

Gets the default #GAppInfo for a given content type.

getDefaultForTypeAsync
void getDefaultForTypeAsync(string contentType, bool mustSupportUris, gio.cancellable.Cancellable cancellable, gio.types.AsyncReadyCallback callback)

Asynchronously gets the default #GAppInfo for a given content type.

getDefaultForTypeFinish
gio.app_info.AppInfo getDefaultForTypeFinish(gio.async_result.AsyncResult result)

Finishes a default #GAppInfo lookup started by gio.app_info.AppInfo.getDefaultForTypeAsync.

getDefaultForUriScheme
gio.app_info.AppInfo getDefaultForUriScheme(string uriScheme)

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

getDefaultForUriSchemeAsync
void getDefaultForUriSchemeAsync(string uriScheme, gio.cancellable.Cancellable cancellable, gio.types.AsyncReadyCallback callback)

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

getDefaultForUriSchemeFinish
gio.app_info.AppInfo getDefaultForUriSchemeFinish(gio.async_result.AsyncResult result)

Finishes a default #GAppInfo lookup started by gio.app_info.AppInfo.getDefaultForUriSchemeAsync.

getFallbackForType
gio.app_info.AppInfo[] getFallbackForType(string contentType)

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.

getRecommendedForType
gio.app_info.AppInfo[] getRecommendedForType(string contentType)

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 gio.app_info.AppInfo.setAsLastUsedForType has been called.

launchDefaultForUri
bool launchDefaultForUri(string uri, gio.app_launch_context.AppLaunchContext context)

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.

launchDefaultForUriAsync
void launchDefaultForUriAsync(string uri, gio.app_launch_context.AppLaunchContext context, gio.cancellable.Cancellable cancellable, gio.types.AsyncReadyCallback callback)

Async version of gio.app_info.AppInfo.launchDefaultForUri.

launchDefaultForUriFinish
bool launchDefaultForUriFinish(gio.async_result.AsyncResult result)

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

resetTypeAssociations
void resetTypeAssociations(string contentType)

Removes all changes to the type associations done by gio.app_info.AppInfo.setAsDefaultForType, gio.app_info.AppInfo.setAsDefaultForExtension, gio.app_info.AppInfo.addSupportsType or gio.app_info.AppInfo.removeSupportsType.

addSupportsType
bool addSupportsType(string contentType)

Adds a content type to the application information to indicate the application is capable of opening files with the given content type.

canDelete
bool canDelete()

Obtains the information whether the #GAppInfo can be deleted. See gio.app_info.AppInfo.delete_.

canRemoveSupportsType
bool canRemoveSupportsType()

Checks if a supported content type can be removed from an application.

delete_
bool delete_()

Tries to delete a #GAppInfo.

dup
gio.app_info.AppInfo dup()

Creates a duplicate of a #GAppInfo.

equal
bool equal(gio.app_info.AppInfo appinfo2)

Checks if two #GAppInfos are equal.

getCommandline
string getCommandline()

Gets the commandline with which the application will be started.

getDescription
string getDescription()

Gets a human-readable description of an installed application.

getDisplayName
string getDisplayName()

Gets the display name of the application. The display name is often more descriptive to the user than the name itself.

getExecutable
string getExecutable()

Gets the executable's name for the installed application.

getIcon
gio.icon.Icon getIcon()

Gets the icon for the application.

getId
string getId()

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.

getName
string getName()

Gets the installed name of the application.

getSupportedTypes
string[] getSupportedTypes()

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.app_info.AppInfo.addSupportsType, but only those exported directly by the application.

launch
bool launch(gio.file.File[] files, gio.app_launch_context.AppLaunchContext context)

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.

launchUris
bool launchUris(string[] uris, gio.app_launch_context.AppLaunchContext context)

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.

launchUrisAsync
void launchUrisAsync(string[] uris, gio.app_launch_context.AppLaunchContext context, gio.cancellable.Cancellable cancellable, gio.types.AsyncReadyCallback callback)

Async version of gio.app_info.AppInfo.launchUris.

launchUrisFinish
bool launchUrisFinish(gio.async_result.AsyncResult result)

Finishes a gio.app_info.AppInfo.launchUrisAsync operation.

removeSupportsType
bool removeSupportsType(string contentType)

Removes a supported type from an application, if possible.

setAsDefaultForExtension
bool setAsDefaultForExtension(string extension)

Sets the application as the default handler for the given file extension.

setAsDefaultForType
bool setAsDefaultForType(string contentType)

Sets the application as the default handler for a given type.

setAsLastUsedForType
bool setAsLastUsedForType(string contentType)

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.app_info.AppInfo.getRecommendedForType, regardless of the default application for that content type.

shouldShow
bool shouldShow()

Checks if the application info should be shown in menus that list available applications.

supportsFiles
bool supportsFiles()

Checks if the application accepts files as arguments.

supportsUris
bool supportsUris()

Checks if the application supports reading files and directories from URIs.