"Open in Windows Terminal" doesn't work correctly when WSL directories are mounted into Windows #15927

Open
opened 2026-01-31 04:52:24 +00:00 by claunia · 0 comments
Owner

Originally created by @DRajsky on GitHub (Nov 19, 2021).

Windows Terminal version

1.11.2921.0

Windows build number

10.0.19043.1348

Other Software

No response

Steps to reproduce

  1. Have Ubuntu 20.04 installed as WSL and \wsl$ mounted as a "Network disk".
  2. In Windows Explorer go to some folder in WSL mounted disk (e. g. Z:\home\rajsky\ali).
  3. Click with right mouse button to open context menu and select "Open in Windows Terminal" (my default one is Ubuntu)

Expected Behavior

Windows terminal should open at the exact folder.

Actual Behavior

Windows Terminal opens in /home directory instead. This only occures in the mounted Ubuntu disk (e.g. if I would open any folder on my C: disk, it would work correctly).
image

Originally created by @DRajsky on GitHub (Nov 19, 2021). ### Windows Terminal version 1.11.2921.0 ### Windows build number 10.0.19043.1348 ### Other Software _No response_ ### Steps to reproduce 0. Have Ubuntu 20.04 installed as WSL and \\wsl$ mounted as a "Network disk". 1. In Windows Explorer go to some folder in WSL mounted disk (e. g. Z:\home\rajsky\ali). 2. Click with right mouse button to open context menu and select "Open in Windows Terminal" (my default one is Ubuntu) ### Expected Behavior Windows terminal should open at the exact folder. ### Actual Behavior Windows Terminal opens in /home directory instead. This only occures in the mounted Ubuntu disk (e.g. if I would open any folder on my C: disk, it would work correctly). ![image](https://user-images.githubusercontent.com/56031388/142625407-107d50ce-528a-4aac-96c5-68cd210a0d64.png)
claunia added the Needs-TriageResolution-ExternalNeeds-Tag-Fix labels 2026-01-31 04:52:25 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#15927