Non default profiles always opening in home directory #15170

Closed
opened 2026-01-31 04:30:34 +00:00 by claunia · 3 comments
Owner

Originally created by @tanuj-05 on GitHub (Sep 11, 2021).

Windows Terminal version (or Windows build number)

1.10.2383.0

Other Software

No response

Steps to reproduce

Right-click and open windows terminal in a particular directory, for eg D drive and open new tabs of different profiles

Expected Behavior

Default profiles, as well as other profiles, should open with current working directory set to D:\

Actual Behavior

Default profile(Powershell in my case) opens in D:\ but other profiles when opened using new tabs open in the User home directory. i.e., C:\Users<Username>

Default profile opens in D drive
image

New profiles opened using the + button open in C:\Users<Username>
image

Originally created by @tanuj-05 on GitHub (Sep 11, 2021). ### Windows Terminal version (or Windows build number) 1.10.2383.0 ### Other Software _No response_ ### Steps to reproduce Right-click and open windows terminal in a particular directory, for eg D drive and open new tabs of different profiles ### Expected Behavior Default profiles, as well as other profiles, should open with current working directory set to D:\ ### Actual Behavior Default profile(Powershell in my case) opens in D:\ but **other profiles when opened using new tabs open in the User home directory. i.e., C:\Users\<Username**> Default profile opens in D drive ![image](https://user-images.githubusercontent.com/36896851/132936822-c9ff1091-e1d5-4c0f-85bb-e5d5f9381d20.png) New profiles opened using the + button open in C:\Users\<Username> ![image](https://user-images.githubusercontent.com/36896851/132936856-1656a7cb-c521-46d7-8e5f-26ffe7e9a41c.png)
claunia added the Resolution-Duplicate label 2026-01-31 04:30:34 +00:00
Author
Owner

@elsaco commented on GitHub (Sep 11, 2021):

Your answer might be in #11196

@elsaco commented on GitHub (Sep 11, 2021): Your answer might be in #11196
Author
Owner

@zadjii-msft commented on GitHub (Sep 13, 2021):

Yep, this is by design. Only the initial tab will open in that first directory, subsequent tabs will open in their normal startingDirectory, which is set to %USERPROFILE% by default. /dup #11196

@zadjii-msft commented on GitHub (Sep 13, 2021): <!-- Out of curiosity, does this work when the path isn't just a drive letter? Like, does this work in `D:\temp`? What's the `commandline` of a profile that doesn't work? Is it a WSL profile? --> Yep, this is by design. Only the initial tab will open in that first directory, subsequent tabs will open in their normal `startingDirectory`, which is set to `%USERPROFILE%` by default. /dup #11196
Author
Owner

@ghost commented on GitHub (Sep 13, 2021):

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!

@ghost commented on GitHub (Sep 13, 2021): 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!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#15170