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 |
const char* |
The cwd for the new process. |
|
The data is owned by the caller of the function. | |
The string is a NUL terminated UTF-8 string. | |
argv |
An array of char* |
The argv for the new process. |
|
The data is owned by the caller of the function. | |
fds |
An array of int |
An array of open fds to pass to the new process, or |
|
The argument can be NULL . | |
The length of the array is specified in the n_fds argument. | |
The data is owned by the caller of the function. | |
map_to |
An array of int |
An array of integers to map the |
|
The argument can be NULL . | |
The length of the array is specified in the n_fds argument. | |
The data is owned by the caller of the function. | |
n_fds |
int |
The length of |
|
env |
An array of char* |
An array of KEY=VALUE environment settings, or |
|
The argument can be NULL . | |
The data is owned by the caller of the function. | |
flags |
XdpSpawnFlags |
Flags influencing the spawn operation. |
|
sandbox_expose |
An array of char* |
Paths to expose rw in the new sandbox, or |
|
The argument can be NULL . | |
The data is owned by the caller of the function. | |
sandbox_expose_ro |
An array of char* |
Paths to expose ro in the new sandbox, or |
|
The argument can be NULL . | |
The data is owned by the caller of the function. | |
cancellable |
GCancellable* |
Optional |
|
The argument can be NULL . | |
The data is owned by the caller of the function. | |
callback |
GAsyncReadyCallback |
A callback to call when the request is done. |
|
data |
gpointer |
Data to pass to |