Gio.Subprocess.prototype.communicate_utf8
function communicate_utf8(stdin_buf: String, cancellable: Gio.Cancellable): [ok: Boolean, stdout_buf: String, stderr_buf: String] {
// Gjs wrapper for g_subprocess_communicate_utf8()
}
Like Gio.Subprocess.prototype.communicate, but validates the output of the process as UTF-8, and returns it as a regular NUL terminated string.
- stdin_buf
data to send to the stdin of the subprocess, or null
- cancellable
- ok
- stdout_buf
data read from the subprocess stdout
- stderr_buf
data read from the subprocess stderr