Method
XdpPortalspawn
Declaration [src]
void
xdp_portal_spawn (
XdpPortal* portal,
const char* cwd,
const char* const* argv,
int* fds,
int* map_to,
int n_fds,
const char* const* env,
XdpSpawnFlags flags,
const char* const* sandbox_expose,
const char* const* sandbox_expose_ro,
GCancellable* cancellable,
GAsyncReadyCallback callback,
gpointer data
)
Description [src]
Creates a new copy of the applications sandbox, and runs a process in, with the given arguments.
The learn when the spawned process exits, connect to the
XdpPortal::spawn-exited signal.
Parameters
cwd-
Type:
const char*The cwd for the new process.
The data is owned by the caller of the function. The value is a NUL terminated UTF-8 string. argv-
Type: An array of
char*The argv for the new process.
The array must be NULL-terminated.The data is owned by the caller of the function. Each element is a NUL terminated UTF-8 string. fds-
Type: An array of
intAn array of open fds to pass to the new process, or
NULLThe argument can be NULL.The length of the array is specified in the n_fdsargument.The data is owned by the caller of the function. map_to-
Type: An array of
intAn array of integers to map the
fdsto, orNULL. Must be the same length asfds.The argument can be NULL.The length of the array is specified in the n_fdsargument.The data is owned by the caller of the function. n_fds-
Type:
intThe length of
fdsandmap_toarrays. env-
Type: An array of
char*An array of KEY=VALUE environment settings, or
NULLThe argument can be NULL.The array must be NULL-terminated.The data is owned by the caller of the function. Each element is a NUL terminated UTF-8 string. flags-
Type:
XdpSpawnFlagsFlags influencing the spawn operation.
sandbox_expose-
Type: An array of
char*Paths to expose rw in the new sandbox, or
NULLThe argument can be NULL.The array must be NULL-terminated.The data is owned by the caller of the function. Each element is a NUL terminated UTF-8 string. sandbox_expose_ro-
Type: An array of
char*Paths to expose ro in the new sandbox, or
NULLThe argument can be NULL.The array must be NULL-terminated.The data is owned by the caller of the function. Each element is a NUL terminated UTF-8 string. cancellable-
Type:
GCancellableOptional
GCancellableThe argument can be NULL.The data is owned by the caller of the function. callback-
Type:
GAsyncReadyCallbackA callback to call when the request is done.
The argument can be NULL. data-
Type:
gpointerData to pass to
callback.The argument can be NULL.The data is owned by the caller of the function.