# terminal: Fix terminal cloning on WSL \(\#39552\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/5263f5143285f5bdf22340283b30826ac3669120)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 5263f5143285f5bdf22340283b30826ac3669120

Requested commit: 5263f5143285f5bdf22340283b30826ac3669120

Commit: 5263f5143285f5bdf22340283b30826ac3669120

Tree: 73d1ad25fbd410738ee2f6f731ac299427962f5e

Author: Marco Mihai Condrache

Committer: GitHub

## Message

```
terminal: Fix terminal cloning on WSL (#39552)

Should close #39428

The working directory of the `wsl.exe` program is set to a Linux path,
which is invalid on the Windows side, causing the terminal to crash. The
first spawn works because there is no active terminal view, allowing a
new shell (which checks for the remote) to be created. I cannot explain
why it works on SSH remote clients, but I may be missing something in
the remote connection implementation.

I don't have a Windows machine to test this, so I would appreciate
someone testing it. 🙏🏼

Release Notes:

- Fixed an issue where WSL terminals could not be splitted

---------

Signed-off-by: Marco Mihai Condrache <52580954+marcocondrache@users.noreply.github.com>
```

## Parents

- [93cd10aaa80c780ee0913944655490aa166b4a85](https://git.cafe/gitcafe/zed/commit/93cd10aaa80c780ee0913944655490aa166b4a85?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/5263f5143285f5bdf22340283b30826ac3669120?format=markdown)
