Ubuntu starting directory switches between \ and / #15550

Closed
opened 2026-01-31 04:41:39 +00:00 by claunia · 2 comments
Owner

Originally created by @GeekTrainer on GitHub (Oct 14, 2021).

Windows Terminal version (or Windows build number)

1.10.2714.0

Other Software

Host: Windows 11 Insider 22471.1000
Ubuntu: LTS

Steps to reproduce

  1. Set startingDirectory to a valid UNC (using escapes): \\\\root\\path
  2. Open Ubuntu terminal successfully
  3. Reboot system, and attempt to open Ubuntu tab. Receive error stating startingDirectory does not exist. Reverse \ to /: //root/path
  4. Open Ubuntu terminal successfully

Unfortunately there doesn't seem to be a pattern here. There will be days when it opens successfully using \, and other times when it wants /.

Expected Behavior

No response

Actual Behavior

Inconsistent path for startingDirectory

Originally created by @GeekTrainer on GitHub (Oct 14, 2021). ### Windows Terminal version (or Windows build number) 1.10.2714.0 ### Other Software Host: Windows 11 Insider 22471.1000 Ubuntu: LTS ### Steps to reproduce 1. Set `startingDirectory` to a valid UNC (using escapes): `\\\\root\\path` 2. Open Ubuntu terminal successfully 3. Reboot system, and attempt to open Ubuntu tab. Receive error stating `startingDirectory` does not exist. Reverse \ to /: `//root/path` 4. Open Ubuntu terminal successfully Unfortunately there doesn't seem to be a pattern here. There will be days when it opens successfully using `\`, and other times when it wants `/`. ### Expected Behavior _No response_ ### Actual Behavior Inconsistent path for `startingDirectory`
claunia added the Resolution-ExternalNeeds-Tag-Fix labels 2026-01-31 04:41:39 +00:00
Author
Owner

@DHowett commented on GitHub (Oct 14, 2021):

This is, at its heart, a /duplicate of https://github.com/microsoft/WSL/issues/6995.

That changing the direction of the slashes works is a red herring; the real problem is that WSL is incapable of serving requests for \\wsl$ or \\wsl.localhost until it's fully running, and you changing the slash direction gives WSL enough time to get started.

@DHowett commented on GitHub (Oct 14, 2021): This is, at its heart, a /duplicate of https://github.com/microsoft/WSL/issues/6995. That changing the direction of the slashes works is a red herring; the real problem is that WSL is incapable of serving requests for `\\wsl$` or `\\wsl.localhost` until it's fully running, and you changing the slash direction gives WSL enough time to get started.
Author
Owner

@ghost commented on GitHub (Oct 14, 2021):

Hi! We've identified this issue as a duplicate of one that exists on somebody else's Issue Tracker. Please make sure you subscribe to the referenced external issue for future updates. Thanks for your report!

@ghost commented on GitHub (Oct 14, 2021): Hi! We've identified this issue as a duplicate of one that exists on somebody else's Issue Tracker. Please make sure you subscribe to the referenced external issue for future updates. Thanks for your report!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#15550