Gio.Subprocess.new

function new(argv: Array(String), flags: Gio.SubprocessFlags): Gio.Subprocess {
    // Gjs wrapper for g_subprocess_newv()
}
  

Create a new process with the given flags and argument list.

The argument list is expected to be null-terminated.

Since 2.40

argv

commandline arguments for the subprocess

flags

flags that define the behaviour of the subprocess

Returns

A newly created Gio.Subprocess, or null on error (and @error will be set)