Windows: fix spawning wezterm-gui

The attach-parent-console should go before any other arguments.

refs: #1278
This commit is contained in:
Wez Furlong committed 2021-12-05 07:03:52 -08:00
1 parent 889fbf0899
commit 2457eeea18
2 files changed
+4 -2

No files matched your search

+2
View File
@@ -19,6 +19,8 @@ As features stabilize some brief notes about them will accumulate here.
#### Fixed
* Windows: `wezterm <something>` would fail silently when spawning `wezterm-gui` under the covers. Regression introduced by [#1278](https://github.com/wez/wezterm/issues/1278). Workaround is to directly spawn `wezterm-gui`.
### 20211204-082213-a66c61ee9
#### New
+2 -2
View File
@@ -340,12 +340,12 @@ fn delegate_to_gui(saver: UmaskSaver) -> anyhow::Result<()> {
.join(exe_name);
let mut cmd = Command::new(exe);
cmd.args(std::env::args_os().skip(1));
if cfg!(windows) {
cmd.arg("--attach-parent-console");
}
cmd.args(std::env::args_os().skip(1));
#[cfg(unix)]
{
use std::os::unix::process::CommandExt;