diff options
| author | Stéphane Klein <contact@stephane-klein.info> | 2026-01-08 23:31:04 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2026-03-02 08:16:36 +0000 |
| commit | dc0c8550c38ffd0983789573a1a0d4417016c2c7 (patch) | |
| tree | a0e238a236f3f071095a803b9a0089f516cac21c /terminal.c | |
| parent | support four-sided padding (left/top/right/bottom) (diff) | |
Spawning new terminal with --config from parent instance
Reference: https://codeberg.org/dnkl/foot/issues/1622
Signed-off-by: Stéphane Klein <contact@stephane-klein.info>
Diffstat (limited to 'terminal.c')
| -rw-r--r-- | terminal.c | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -3802,8 +3802,18 @@ term_bell(struct terminal *term) bool term_spawn_new(const struct terminal *term) { + char *argv[4]; + int argc = 0; + + argv[argc++] = term->foot_exe; + if (term->conf->conf_path != NULL) { + argv[argc++] = "--config"; + argv[argc++] = term->conf->conf_path; + } + argv[argc] = NULL; + return spawn( - term->reaper, term->cwd, (char *const []){term->foot_exe, NULL}, + term->reaper, term->cwd, argv, -1, -1, -1, NULL, NULL, NULL) >= 0; } |
