mirror of
https://github.com/zed-industries/zed.git
synced 2026-06-01 03:14:56 +07:00
Fix launching from WSL with fish as default shell (#48136)
Closes #46801 When connecting to WSL2 with fish as the default shell, Zed gets stuck at "Starting proxy". The connection works fine when bash is the default shell. In `start_proxy()`, the WSL command was being invoked with: ```rust let proxy_process = match wsl_command_impl(&self.connection_options, "env", &proxy_args, false) ``` Changing the last argument to true invokes the WSL command with `--exec` flag which executes the command in the WSL environment without spawning a new shell. With above fix I can launch Zed from WSL (Arch) with fish.
This commit is contained in:
parent
af0e45e046
commit
782f91f320
1 changed files with 1 additions and 1 deletions
|
|
@ -362,7 +362,7 @@ impl RemoteConnection for WslRemoteConnection {
|
|||
}
|
||||
|
||||
let proxy_process =
|
||||
match wsl_command_impl(&self.connection_options, "env", &proxy_args, false)
|
||||
match wsl_command_impl(&self.connection_options, "env", &proxy_args, true)
|
||||
.kill_on_drop(true)
|
||||
.spawn()
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue