aboutsummaryrefslogtreecommitdiff
path: root/slave.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2022-05-28 17:27:29 +0000
committerDaniel Eklöf <daniel@ekloef.se>2022-06-13 09:55:23 +0000
commit755f96321ab47f931d11680027d47d1d772f5584 (patch)
treebf35e0c7ca5b15640513b2ad3f470c29a6127267 /slave.h
parentcommands: scroll up: simplify viewport clamping logic (diff)
config: add a new ‘environment’ section
This section allows the user to define custom environment variables to be set in the child process: [environment] name=value
Diffstat (limited to 'slave.h')
-rw-r--r--slave.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/slave.h b/slave.h
index 4b47bfde..b1c08f14 100644
--- a/slave.h
+++ b/slave.h
@@ -3,9 +3,11 @@
#include <sys/types.h>
+#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);