From 755f96321ab47f931d11680027d47d1d772f5584 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Sat, 28 May 2022 19:27:29 +0200 Subject: config: add a new ‘environment’ section MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This section allows the user to define custom environment variables to be set in the child process: [environment] name=value --- slave.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'slave.h') diff --git a/slave.h b/slave.h index 4b47bfde..b1c08f14 100644 --- a/slave.h +++ b/slave.h @@ -3,9 +3,11 @@ #include +#include "config.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 env_var_list_t *extra_env_vars, const char *term_env, + const char *conf_shell, bool login_shell, const user_notifications_t *notifications); -- cgit v1.3