aboutsummaryrefslogtreecommitdiff
path: root/terminal.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-12-21 18:57:28 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-12-21 18:57:28 +0000
commit39146fac5cb7db4d0b68ba685722ca4713ddf722 (patch)
tree1b6bed7901d67048edfaf09e87ec87efaf301a85 /terminal.h
parentclient/server: client sends its CWD to server (diff)
term: term_init: add 'cwd' argument
This is used when spawning the slave, to set its current working directory just before we exec() the client. In a regular foot instance, we set the cwd from getcwd(). In a foot server instance, each connecting client sends its cwd to the server, and we use that.
Diffstat (limited to 'terminal.h')
-rw-r--r--terminal.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/terminal.h b/terminal.h
index 0fe4c4dc..0db97e2b 100644
--- a/terminal.h
+++ b/terminal.h
@@ -322,7 +322,8 @@ struct terminal {
struct config;
struct terminal *term_init(
const struct config *conf, struct fdm *fdm, struct wayland *wayl,
- const char *term_env, const char *foot_exe, int argc, char *const *argv,
+ const char *term_env, const char *foot_exe, const char *cwd,
+ int argc, char *const *argv,
void (*shutdown_cb)(void *data, int exit_code), void *shutdown_data);
bool term_shutdown(struct terminal *term);