mux server: propagate config CLI options when daemonizing

refs: #3397
This commit is contained in:
Wez Furlong committed 2023-03-29 05:40:15 -07:00
1 parent c1366b217d
commit ea92df9486
3 files changed
+12

No files matched your search

Generated
+2
View File
@@ -6091,8 +6091,10 @@ version = "0.1.0"
dependencies = [
"anyhow",
"async_ossl",
"cc",
"clap 4.1.13",
"config",
"embed-resource",
"env-bootstrap",
"libc",
"log",
+2
View File
@@ -31,6 +31,8 @@ As features stabilize some brief notes about them will accumulate here.
* Windows: "error converting Lua string to &str" on systems with an ACP that
was not compatible with UTF-8 when wezterm was placed in a directory with
a non UTF-8, non-ASCII name. #3390
* mux: `--config` related command line options passed to `wezterm-mux-server` were
not propagated when using `--daemonize`. #3397 #2686
### 20230326-111934-3666303c
+8
View File
@@ -106,6 +106,14 @@ fn run() -> anyhow::Result<()> {
if opts.skip_config {
cmd.arg("-n");
}
if let Some(f) = &opts.config_file {
cmd.arg("--config-file");
cmd.arg(f);
}
for (name, value) in &opts.config_override {
cmd.arg("--config");
cmd.arg(&format!("{name}={value}"));
}
if let Some(cwd) = opts.cwd {
cmd.arg("--cwd");
cmd.arg(cwd);