Creates a new #GDesktopAppInfo based on a desktop file id.
Gets the user-visible display name of the "additional application action" specified by action_name.
Looks up a boolean value in the keyfile backing info.
Gets the categories from the desktop file.
When info was created from a known filename, return it. In some situations such as the #GDesktopAppInfo returned from gio.desktop_app_info.DesktopAppInfo.newFromKeyfile, this function will return null.
Gets the generic name from the desktop file.
A desktop file is hidden if the Hidden key in it is set to True.
Gets the keywords from the desktop file.
Looks up a localized string value in the keyfile backing info translated to the current locale.
Gets the value of the NoDisplay key, which helps determine if the application info should be shown in menus. See G_KEY_FILE_DESKTOP_KEY_NO_DISPLAY and gio.app_info.AppInfo.shouldShow.
Checks if the application info should be shown in menus that list available applications for a specific name of the desktop, based on the OnlyShowIn and NotShowIn keys.
Retrieves the StartupWMClass field from info. This represents the WM_CLASS property of the main window of the application, if launched through info.
Looks up a string value in the keyfile backing info.
Looks up a string list value in the keyfile backing info.
Returns whether key exists in the "Desktop Entry" group of the keyfile backing info.
Activates the named application action.
This function performs the equivalent of gio.app_info.AppInfo.launchUris, but is intended primarily for operating system components that launch applications. Ordinary applications should use gio.app_info.AppInfo.launchUris.
Equivalent to gio.desktop_app_info.DesktopAppInfo.launchUrisAsManager but allows you to pass in file descriptors for the stdin, stdout and stderr streams of the launched process.
Returns the list of "additional application actions" supported on the desktop file, as per the desktop file specification.
Gets all applications that implement interface.
Creates a new #GDesktopAppInfo.
Creates a new #GDesktopAppInfo.
Sets the name of the desktop that the application is running in. This is used by gio.app_info.AppInfo.shouldShow and gio.desktop_app_info.DesktopAppInfo.getShowIn to evaluate the OnlyShowIn and NotShowIn desktop entry fields.
Adds a content type to the application information to indicate the application is capable of opening files with the given content type.
Obtains the information whether the #GAppInfo can be deleted. See gio.app_info.AppInfo.delete_.
Checks if a supported content type can be removed from an application.
Tries to delete a #GAppInfo.
Creates a duplicate of a #GAppInfo.
Checks if two #GAppInfos are equal.
Gets the commandline with which the application will be started.
Gets a human-readable description of an installed application.
Gets the display name of the application. The display name is often more descriptive to the user than the name itself.
Gets the executable's name for the installed application.
Gets the icon for the application.
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.
Gets the installed name of the application.
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.
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.
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.
Async version of gio.app_info.AppInfo.launchUris.
Finishes a gio.app_info.AppInfo.launchUrisAsync operation.
Removes a supported type from an application, if possible.
Sets the application as the default handler for the given file extension.
Sets the application as the default handler for a given type.
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.
Checks if the application info should be shown in menus that list available applications.
Checks if the application accepts files as arguments.
Checks if the application supports reading files and directories from URIs.
Set the GObject of a D ObjectG wrapper.
Get a pointer to the underlying C object.
Calls g_object_ref() on a GObject.
Calls g_object_unref() on a GObject.
Get the GType of an object.
GObject GType property.
Convenience method to return this cast to a type. For use in D with statements.
Template to get the D object from a C GObject and cast it to the given D object type.
Connect a D closure to an object signal.
Template for setting a GObject property.
Template for getting a GObject property.
Creates a binding between source_property on source and target_property on target.
Creates a binding between source_property on source and target_property on target, allowing you to set the transformation functions to be used by the binding.
This function is intended for #GObject implementations to re-enforce a floating[floating-ref] object reference. Doing this is seldom required: all #GInitiallyUnowneds are created with a floating reference which usually just needs to be sunken by calling gobject.object.ObjectG.refSink.
Increases the freeze count on object. If the freeze count is non-zero, the emission of "notify" signals on object is stopped. The signals are queued until the freeze count is decreased to zero. Duplicate notifications are squashed so that at most one #GObject::notify signal is emitted for each property modified while the object is frozen.
Gets a named field from the objects table of associations (see gobject.object.ObjectG.setData).
Gets a property of an object.
This function gets back user data pointers stored via gobject.object.ObjectG.setQdata.
Gets n_properties properties for an object. Obtained properties will be set to values. All properties must be valid. Warnings will be emitted and undefined behaviour may result if invalid properties are passed in.
Checks whether object has a floating[floating-ref] reference.
Emits a "notify" signal for the property property_name on object.
Emits a "notify" signal for the property specified by pspec on object.
Increase the reference count of object, and possibly remove the floating[floating-ref] reference, if object has a floating reference.
Releases all references to other objects. This can be used to break reference cycles.
Each object carries around a table of associations from strings to pointers. This function lets you set an association.
Sets a property on an object.
Remove a specified datum from the object's data associations, without invoking the association's destroy handler.
This function gets back user data pointers stored via gobject.object.ObjectG.setQdata and removes the data from object without invoking its destroy() function (if any was set). Usually, calling this function is only required to update user data pointers with a destroy notifier, for example:
Reverts the effect of a previous call to gobject.object.ObjectG.freezeNotify. The freeze count is decreased on object and when it reaches zero, queued "notify" signals are emitted.
This function essentially limits the life time of the closure to the life time of the object. That is, when the object is finalized, the closure is invalidated by calling gobject.closure.Closure.invalidate on it, in order to prevent invocations of the closure with a finalized (nonexisting) object. Also, gobject.object.ObjectG.ref_ and gobject.object.ObjectG.unref are added as marshal guards to the closure, to ensure that an extra reference count is held on object during invocation of the closure. Usually, this function will be called on closures that use this object as closure data.
Connect to Notify signal.
Creates a new #GAppInfo from the given information.
Gets a list of all of the applications currently registered on this system.
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.
Gets the default #GAppInfo for a given content type.
Asynchronously gets the default #GAppInfo for a given content type.
Finishes a default #GAppInfo lookup started by gio.app_info.AppInfo.getDefaultForTypeAsync.
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".
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".
Finishes a default #GAppInfo lookup started by gio.app_info.AppInfo.getDefaultForUriSchemeAsync.
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.
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.
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.
Async version of gio.app_info.AppInfo.launchDefaultForUri.
Finishes an asynchronous launch-default-for-uri operation.
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.
Adds a content type to the application information to indicate the application is capable of opening files with the given content type.
Obtains the information whether the #GAppInfo can be deleted. See gio.app_info.AppInfo.delete_.
Checks if a supported content type can be removed from an application.
Tries to delete a #GAppInfo.
Creates a duplicate of a #GAppInfo.
Checks if two #GAppInfos are equal.
Gets the commandline with which the application will be started.
Gets a human-readable description of an installed application.
Gets the display name of the application. The display name is often more descriptive to the user than the name itself.
Gets the executable's name for the installed application.
Gets the icon for the application.
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.
Gets the installed name of the application.
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.
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.
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.
Async version of gio.app_info.AppInfo.launchUris.
Finishes a gio.app_info.AppInfo.launchUrisAsync operation.
Removes a supported type from an application, if possible.
Sets the application as the default handler for the given file extension.
Sets the application as the default handler for a given type.
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.
Checks if the application info should be shown in menus that list available applications.
Checks if the application accepts files as arguments.
Checks if the application supports reading files and directories from URIs.
gio.desktop_app_info.DesktopAppInfo is an implementation of gio.app_info.AppInfo based on desktop files.
Note that <gio/gdesktopappinfo.h> belongs to the UNIX-specific GIO interfaces, thus you have to use the gio-unix-2.0.pc pkg-config file or the GioUnix-2.0 GIR namespace when using it.