Method

MetaWaylandClientspawnv

Declaration [src]

GSubprocess*
meta_wayland_client_spawnv (
  MetaWaylandClient* client,
  MetaDisplay* display,
  const char* const* argv,
  GError** error
)

Description [src]

Creates a GSubprocess given a provided array of arguments, launching a new process with the binary specified in the first element of argv, and with the rest of elements as parameters. It also sets up a new Wayland socket and sets the environment variable WAYLAND_SOCKET to make the new process to use it.

Parameters

display MetaDisplay
 

The current MetaDisplay.

 The data is owned by the caller of the function.
argv An array of filename
 

Command line arguments.

 The array must be NULL-terminated.
 The data is owned by the caller of the function.
 Each element is a file system path, using the OS encoding.
error GError **
  The return location for a GError*, or NULL.

Return value

Returns: GSubprocess
 

A new GSubprocess, or NULL on error (and error will be set)

 The caller of the method takes ownership of the data, and is responsible for freeing it.