Package: gio

Function gio:application-command-line-getenv

Lambda List

gio:application-command-line-getenv (cmdline name)

Arguments

cmdline -- a g:application-command-line instance
name -- a string for the environment variable to get

Return Value

The string with the value of the variable, or nil if unset or unsent.

Details

Gets the value of a particular environment variable of the command line invocation, as would be returned by the g_getenv() function. 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.

Examples

(defvar cmd (make-instance 'g:application-command-line)) => CMD
(g:application-command-line-getenv cmd "HOME") => "/home/dieter"
(g:application-command-line-getenv cmd "unkown") => NIL    
 

See also

#2025-2-3