Gio.ApplicationCommandLine.prototype.get_cwd
function get_cwd(): String { // Gjs wrapper for g_application_command_line_get_cwd() }
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.
Since 2.28
- Returns
the current directory, or null