Windows: fix spawning wezterm-gui
The attach-parent-console should go before any other arguments. refs: #1278
This commit is contained in:
1 parent
889fbf0899
commit
2457eeea18
2 files changed
+4
-2
No files matched your search
@@ -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
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user