Package: gio

Function g-application-command-line-environ

Lambda List

g-application-command-line-environ (cmdline)

Arguments

cmdline -- a g-application-command-line object

Return Value

A list of strings with the environment strings, or nil if they were not sent.

Details

Gets the contents of the 'environ' variable of the command line invocation, as would be returned by the g-environ function. Each item in the list of the form NAME = VALUE. The strings may contain non UTF-8 data.

The remote application usually does not send an environment. Use the :send-enviroment flag 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.

See the g-application-command-line-getenv function if you are only interested in the value of a single environment variable.
 

See also

*2021-10-10