Gio.ApplicationCommandLine.prototype.get_stdin

function get_stdin(): Gio.InputStream {
    // Gjs wrapper for g_application_command_line_get_stdin()
}
  

Gets the stdin of the invoking process.

The Gio.InputStream can be used to read data passed to the standard input of the invoking process. This doesn't work on all platforms. Presently, it is only available on UNIX when using a DBus daemon capable of passing file descriptors. If stdin is not available then null will be returned. In the future, support may be expanded to other platforms.

You must only call this function once per commandline invocation.

Since 2.34

Returns

a Gio.InputStream for stdin