GObject.Object
Gio.ApplicationCommandLine
Import line: | Gio = imports.gi.Gio; |
GIR File: | Gio-2.0.gir |
C documentation: | GApplicationCommandLine |
Class : | ApplicationCommandLine |
Extends: | GObject.Object |
Properties | Defined By | |
---|---|---|
arguments : GLib.Variant
|
Gio.ApplicationCommandLine | |
is_remote : gboolean
read only
|
Gio.ApplicationCommandLine | |
parent_instance : GObject.Object
read only
|
Gio.ApplicationCommandLine | |
platform_data : GLib.Variant
|
Gio.ApplicationCommandLine | |
priv : Gio.ApplicationCommandLinePrivate
read only
|
Gio.ApplicationCommandLine |
Method / Constructor | Defined By | |
---|---|---|
new Gio.ApplicationCommandLine
(Object properties)
Create a new Gio.ApplicationCommandLine
Create a new Gio.ApplicationCommandLine
|
||
Gets the list of arguments that was passed on the command line.
|
Gio.ApplicationCommandLine | |
get_cwd
()
:
String
Gets the working directory of the command line invocation.
Gets the working directory of the command line invocation.
The string may contain non-utf8 data. It is possible that the remote application did not send a working directory, so this may be NULL. The return value should not be modified or freed and is valid for as long as cmdline exists.
|
Gio.ApplicationCommandLine | |
get_environ
()
:
Array
Gets the contents of the 'environ' variable of the command line
invocation, as would be returned by g_get_environ(), ie as a NULL-terminated list of strings in the form 'NAME=VALUE'.
Gets the contents of the 'environ' variable of the command line
invocation, as would be returned by g_get_environ(), ie as a NULL-terminated list of strings in the form 'NAME=VALUE'. The strings may contain non-utf8 data. The remote application usually does not send an environment. Use G_APPLICATION_SEND_ENVIRONMENT to affect that. Even with this flag set it is possible that the environment is still not available (due to invocation messages from other applications). The return value should not be modified or freed and is valid for as long as cmdline exists. See g_application_command_line_getenv() if you are only interested in the value of a single environment variable. strings, or NULL if they were not sent
|
Gio.ApplicationCommandLine | |
get_exit_status
()
:
gint32
Gets the exit status of cmdline.
Gets the exit status of cmdline. See
g_application_command_line_set_exit_status() for more information.
|
Gio.ApplicationCommandLine | |
get_is_remote
()
:
gboolean
Determines if cmdline represents a remote invocation.
Determines if cmdline represents a remote invocation.
|
Gio.ApplicationCommandLine | |
get_platform_data
()
:
GLib.Variant
Gets the platform data associated with the invocation of cmdline.
Gets the platform data associated with the invocation of cmdline.
This is a GVariant dictionary containing information about the context in which the invocation occured. It typically contains information like the current working directory and the startup notification ID. For local invocation, it will be NULL.
|
Gio.ApplicationCommandLine | |
Gets the value of a particular environment variable of the command
line invocation, as would be returned by g_getenv().
Gets the value of a particular environment variable of the command
line invocation, as would be returned by g_getenv(). The strings may contain non-utf8 data. The remote application usually does not send an environment. Use G_APPLICATION_SEND_ENVIRONMENT to affect that. Even with this flag set it is possible that the environment is still not available (due to invocation messages from other applications). The return value should not be modified or freed and is valid for as long as cmdline exists.
|
Gio.ApplicationCommandLine | |
set_exit_status
(gint32 exit_status)
:
none
Sets the exit status that will be used when the invoking process
exits.
Sets the exit status that will be used when the invoking process
exits. The return value of the GApplication::command-line signal is passed to this function when the handler returns. This is the usual way of setting the exit status. In the event that you want the remote invocation to continue running and want to decide on the exit status in the future, you can use this call. For the case of a remote invocation, the remote process will typically exit when the last reference is dropped on cmdline. The exit status of the remote process will be equal to the last value that was set with this function. In the case that the commandline invocation is local, the situation is slightly more complicated. If the commandline invocation results increased to a non-zero value) then the application is considered to have been 'successful' in a certain sense, and the exit status is always zero. If the application use count is zero, though, the exit status of the local GApplicationCommandLine is used.
|
Gio.ApplicationCommandLine |
None |
Class / Namespace | Method / Signal / Properties |
---|---|
Gio.Application
Signal |
The ::command-line signal is emitted on the primary instance when
a commandline is not handled locally. |