Import line: | Gio = imports.gi.Gio; |
GIR File: | Gio-2.0.gir |
C documentation: | GAppInfo |
Interface : | AppInfo |
Implementations: | Gio.DesktopAppInfo |
None |
Method / Constructor | Defined By | |
---|---|---|
Adds a content type to the application information to indicate the
application is capable of opening files with the given content type. |
Gio.AppInfo | |
can_delete
()
:
gboolean
Obtains the information whether the GAppInfo can be deleted.
Obtains the information whether the GAppInfo can be deleted.
See g_app_info_delete().
|
Gio.AppInfo | |
can_remove_supports_type
()
:
gboolean
Checks if a supported content type can be removed from an application.
Checks if a supported content type can be removed from an application.
content types from a given appinfo, FALSE if not.
|
Gio.AppInfo | |
delete
()
:
gboolean
Tries to delete a GAppInfo.
Tries to delete a GAppInfo.
On some platforms, there may be a difference between user-defined GAppInfos which can be deleted, and system-wide ones which cannot. See g_app_info_can_delete().
|
Gio.AppInfo | |
dup
()
:
Gio.AppInfo
Creates a duplicate of a GAppInfo.
Creates a duplicate of a GAppInfo.
|
Gio.AppInfo | |
Checks if two GAppInfos are equal.
Checks if two GAppInfos are equal.
|
Gio.AppInfo | |
get_commandline
()
:
String
Gets the commandline with which the application will be
started.
Gets the commandline with which the application will be
started. or NULL if this information is not available
|
Gio.AppInfo | |
get_description
()
:
String
Gets a human-readable description of an installed application.
Gets a human-readable description of an installed application.
application appinfo, or NULL if none.
|
Gio.AppInfo | |
get_display_name
()
:
String
Gets the display name of the application.
Gets the display name of the application. The display name is often more
descriptive to the user than the name itself. no display name is available.
|
Gio.AppInfo | |
get_executable
()
:
String
Gets the executable's name for the installed application.
Gets the executable's name for the installed application.
binaries name
|
Gio.AppInfo | |
get_icon
()
:
Gio.Icon
Gets the icon for the application.
Gets the icon for the application.
|
Gio.AppInfo | |
get_id
()
:
String
Gets the ID of an 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. Note that the returned ID may be NULL, depending on how the appinfo has been constructed.
|
Gio.AppInfo | |
get_name
()
:
String
Gets the installed name of the application.
Gets the installed name of the application.
|
Gio.AppInfo | |
Launches the application.
Launches the application. Passes files to the launched application
as arguments, using the optional launch_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 g_app_info_launch_uris() instead. On UNIX, this function sets the environment variable with the path of the launched desktop file and id of the launched process. This can be used to ignore by further processes. The set, based on information provided in launch_context.
|
Gio.AppInfo | |
Launches the application.
Launches the application. Passes uris to the launched application
as arguments, using the optional launch_context to get information about the details of the launcher (like what screen it is on). On error, error will be set accordingly. To lauch 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.
|
Gio.AppInfo | |
Gio.AppInfo | ||
Sets the application as the default handler for the given file extension.
|
Gio.AppInfo | |
Gio.AppInfo | ||
Sets the application as the last used application 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 g_app_info_get_recommended_for_type, regardless of the default application for that content type.
|
Gio.AppInfo | |
should_show
()
:
gboolean
Checks if the application info should be shown in menus that
list available applications.
Checks if the application info should be shown in menus that
list available applications.
|
Gio.AppInfo | |
supports_files
()
:
gboolean
Checks if the application accepts files as arguments.
Checks if the application accepts files as arguments.
|
Gio.AppInfo | |
supports_uris
()
:
gboolean
Checks if the application supports reading files and directories from URIs.
Checks if the application supports reading files and directories from URIs.
|
Gio.AppInfo |
None |
Class / Namespace | Method / Signal / Properties |
---|---|
Gio
Method |
Gio.app_info_create_from_commandline
(String commandline, String application_name, AppInfoCreateFlags flags)
:
Gio.AppInfo
Creates a new GAppInfo from the given information.
|
Gio
Method |
Gets the GAppInfo that corresponds to a given content type.
|
Gio
Method |
Gets the default application for launching applications
using this URI scheme. |
Gio.AppLaunchContext
Method |
Gets the display string for the context.
|
Gio.AppLaunchContext
Method |
Initiates startup notification for the application and returns the
if supported. |
Gio.DesktopAppInfoLookup
Method |
get_default_for_uri_scheme
(String uri_scheme)
:
Gio.AppInfo
Gets the default application for launching applications
using this URI scheme for a particular GDesktopAppInfoLookup implementation. |
Gio.File
Method |
query_default_handler
(Cancellable cancellable)
:
Gio.AppInfo
Returns the GAppInfo that is registered as the default
application to handle the file specified by file. |
Gtk.AppChooser
Method |
get_app_info
()
:
Gio.AppInfo
Returns the currently selected application.
|
Gtk.AppChooserWidget
Signal |
application_activated
(AppChooserWidget self, AppInfo application)
:
none
Emitted when an application item is activated from the widget's list.
|
Gtk.AppChooserWidget
Signal |
application_selected
(AppChooserWidget self, AppInfo application)
:
none
Emitted when an application item is selected from the widget's list.
|
Gtk.AppChooserWidget
Signal |
Emitted when a context menu is about to popup over an application item.
|
Gtk.RecentInfo
Method |
create_app_info
(String app_name)
:
Gio.AppInfo
Creates a GAppInfo for the specified GtkRecentInfo
In case of error, error will be set either with a GTK_RECENT_MANAGER_ERROR or a G_IO_ERROR |