mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-04 04:06:06 -05:00
When this option is used, the child process in the new terminal instance will inherit its environment from the footclient process, instead of the foot server’s. Implemented by sending (yet another) dynamic string list as part of the client -> server setup packet. When the new option is *not* used, the setup packet is now 2 bytes larger than before. On the server side, the slave process now uses execvpe() instead of execvp(). There’s plumbing to propagate a new ‘envp’ argument from term_init() all the way down to slave_exec(). If ‘envp’ is NULL, we use ‘environ’ instead (thus matching the old behavior of execvp()). Closes #1004
11 lines
305 B
C
11 lines
305 B
C
#pragma once
|
|
#include <stdbool.h>
|
|
|
|
#include <sys/types.h>
|
|
|
|
#include "user-notification.h"
|
|
|
|
pid_t slave_spawn(
|
|
int ptmx, int argc, const char *cwd, char *const *argv, char *const *envp,
|
|
const char *term_env, const char *conf_shell, bool login_shell,
|
|
const user_notifications_t *notifications);
|