GObject.Object
Gio.DesktopAppInfo
Import line: | Gio = imports.gi.Gio; |
GIR File: | Gio-2.0.gir |
C documentation: | GDesktopAppInfo |
Class : | DesktopAppInfo |
Implements: | Gio.AppInfo |
Extends: | GObject.Object |
None |
Method / Constructor | Defined By | |
---|---|---|
new Gio.DesktopAppInfo
()
Create a new Gio.DesktopAppInfo
Create a new Gio.DesktopAppInfo
|
||
Create a new Gio.DesktopAppInfo
Create a new Gio.DesktopAppInfo
|
||
Create a new Gio.DesktopAppInfo
Create a new Gio.DesktopAppInfo
|
||
Create a new Gio.DesktopAppInfo
Create a new Gio.DesktopAppInfo
|
||
Gio.DesktopAppInfo.set_desktop_env
(String desktop_env)
:
none
Sets the name of the desktop that the application is running in.
Sets the name of the desktop that the application is running in.
This is used by g_app_info_should_show() to evaluate the desktop entry fields. The Menu specification Should be called only once; subsequent calls are ignored.
|
Gio.DesktopAppInfo | |
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_filename
()
:
String
When info was created from a known filename, return it.
When info was created from a known filename, return it. In some
situations such as the GDesktopAppInfo returned from g_desktop_app_info_new_from_keyfile(), this function will return NULL.
|
Gio.DesktopAppInfo | |
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_is_hidden
()
:
gboolean
A desktop file is hidden if the Hidden key in it is
set to True.
A desktop file is hidden if the Hidden key in it is
set to True.
|
Gio.DesktopAppInfo | |
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 | |
launch_uris_as_manager
(Array uris, AppLaunchContext launch_context, SpawnFlags spawn_flags, Function user_setup, void* user_setup_data, Function pid_callback, void* pid_callback_data)
:
gboolean
This function performs the equivalent of g_app_info_launch_uris(),
but is intended primarily for operating system components that launch applications.
This function performs the equivalent of g_app_info_launch_uris(),
but is intended primarily for operating system components that launch applications. Ordinary applications should use g_app_info_launch_uris(). In contrast to g_app_info_launch_uris(), all processes created will always be run directly as children as if by the UNIX fork()/exec() calls. This guarantee allows additional control over the exact environment of the child processes, which is provided via a setup function semantics of the setup function.
|
Gio.DesktopAppInfo | |
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 |