Why can't I change the starting directory of Ubuntu in the Windows terminal in WSL? #22090

Closed
opened 2026-01-31 08:03:09 +00:00 by claunia · 2 comments
Owner

Originally created by @ghost on GitHub (Aug 13, 2024).

Windows Terminal version

1.20.11781.0

Windows build number

10.0.22631.3880

Other Software

WSL
UBUNTU

Steps to reproduce

I change the starting directory setting of ubuntu

TKQm3mJj

Expected Behavior

Instantly getting to C disk after opening ubuntu terminal

Actual Behavior

Always getting to the home directory after opening whatever the starting directory i specified in the settings.

изображение

If i change C:\ to /mnt/c/ i get the error after openint ubuntu: [error 2147942667 (0x8007010b) when launching ubuntu2404.exe'] Could not access starting directory "/mnt/c/"

Originally created by @ghost on GitHub (Aug 13, 2024). ### Windows Terminal version 1.20.11781.0 ### Windows build number 10.0.22631.3880 ### Other Software WSL UBUNTU ### Steps to reproduce I change the starting directory setting of ubuntu ![TKQm3mJj](https://github.com/user-attachments/assets/0b5ba40d-55e7-45f5-a12b-88298a894d4d) ### Expected Behavior Instantly getting to C disk after opening ubuntu terminal ### Actual Behavior Always getting to the home directory after opening whatever the starting directory i specified in the settings. ![изображение](https://github.com/user-attachments/assets/91971a4d-8760-44df-afdc-1cd2676191cc) If i change C:\ to /mnt/c/ i get the error after openint ubuntu: [error 2147942667 (0x8007010b) when launching ubuntu2404.exe'] Could not access starting directory "/mnt/c/"
claunia added the Issue-BugResolution-Duplicate labels 2026-01-31 08:03:10 +00:00
Author
Owner

@carlos-zamora commented on GitHub (Aug 14, 2024):

Thanks for filing. Marking this as a /dup of #12961. Even though the title doesn't sound the same, it's definitely the same root cause. 😊

@carlos-zamora commented on GitHub (Aug 14, 2024): Thanks for filing. Marking this as a /dup of #12961. Even though the title doesn't sound the same, it's definitely the same root cause. 😊
Author
Owner

@microsoft-github-policy-service[bot] commented on GitHub (Aug 14, 2024):

Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!

@microsoft-github-policy-service[bot] commented on GitHub (Aug 14, 2024): Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report! <!-- Policy app identification https://img.shields.io/static/v1?label=PullRequestIssueManagement. -->
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#22090