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 [signal@Portal:XdpPortal:spawn-exited
] signal.
this |
a [class@Portal] |
cwd |
the cwd for the new process |
argv |
the argv for the new process |
fds |
an array of open fds to pass to the new process, or `NULL` |
map_to |
an array of integers to map the |
env |
an array of KEY=VALUE environment settings, or `NULL` |
flags |
flags influencing the spawn operation |
sandbox_expose |
paths to expose rw in the new sandbox, or `NULL` |
sandbox_expose_ro |
paths to expose ro in the new sandbox, or `NULL` |
cancellable |
optional [[email protected]] |
callback |
a callback to call when the request is done |
data |
data to pass to |
n_fds |
the length of |