“Open In Windows Terminal” Only work in the first tab, other new tabs still start dirctory with default #9769

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

Originally created by @shykai on GitHub (Jul 23, 2020).

Environment

Windows build number:  10.0.19041.0
Windows Terminal version (if applicable): 1.1.2021.0

Steps to reproduce

  1. RightClick Floder and choose "Open In Windows Terminal"

  2. Click "NewTab" and create a new Tab "PowerShell"

Expected behavior

image
The first Tab PowerShell starts with the right dirctory D:\TestWT\OpenInWindowsTerminal
In this Terminal, any new Tabs should starts with the same Path D:\TestWT\OpenInWindowsTerminal

Actual behavior

The New Tab starts with the defualt dirctory C:\Windows\System32.
image

Else

I found the function "Open In Windows Terminal" works with the parmeter -d, and it only effects "defaultProfile" in settings.json.
Actually when new Profiles were created,they were only effected by the "wt.exe"'s start dirctory, like the pic below.
image

Originally created by @shykai on GitHub (Jul 23, 2020). <!-- 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨 I ACKNOWLEDGE THE FOLLOWING BEFORE PROCEEDING: 1. If I delete this entire template and go my own path, the core team may close my issue without further explanation or engagement. 2. If I list multiple bugs/concerns in this one issue, the core team may close my issue without further explanation or engagement. 3. If I write an issue that has many duplicates, the core team may close my issue without further explanation or engagement (and without necessarily spending time to find the exact duplicate ID number). 4. If I leave the title incomplete when filing the issue, the core team may close my issue without further explanation or engagement. 5. If I file something completely blank in the body, the core team may close my issue without further explanation or engagement. All good? Then proceed! --> <!-- This bug tracker is monitored by Windows Terminal development team and other technical folks. **Important: When reporting BSODs or security issues, DO NOT attach memory dumps, logs, or traces to Github issues**. Instead, send dumps/traces to secure@microsoft.com, referencing this GitHub issue. If this is an application crash, please also provide a Feedback Hub submission link so we can find your diagnostic data on the backend. Use the category "Apps > Windows Terminal (Preview)" and choose "Share My Feedback" after submission to get the link. Please use this form and describe your issue, concisely but precisely, with as much detail as possible. --> # Environment ```none Windows build number: 10.0.19041.0 Windows Terminal version (if applicable): 1.1.2021.0 ``` # Steps to reproduce 1. RightClick Floder and choose "Open In Windows Terminal" 2. Click "NewTab" and create a new Tab "PowerShell" <!-- A description of how to trigger this bug. --> # Expected behavior ![image](https://user-images.githubusercontent.com/393084/88251589-db75f180-ccdd-11ea-8b54-e952f811bcbc.png) The first Tab PowerShell starts with the right dirctory `D:\TestWT\OpenInWindowsTerminal` In this Terminal, any new Tabs should starts with the same Path `D:\TestWT\OpenInWindowsTerminal` <!-- A description of what you're expecting, possibly containing screenshots or reference material. --> # Actual behavior The New Tab starts with the defualt dirctory `C:\Windows\System32`. ![image](https://user-images.githubusercontent.com/393084/88251942-0f054b80-ccdf-11ea-8b06-326094308e2d.png) <!-- What's actually happening? --> # Else I found the function "Open In Windows Terminal" works with the parmeter `-d`, and it only effects "defaultProfile" in settings.json. Actually when new Profiles were created,they were only effected by the "wt.exe"'s start dirctory, like the pic below. ![image](https://user-images.githubusercontent.com/393084/88252432-b20a9500-cce0-11ea-9b9c-f92acd270dc6.png)
claunia added the Resolution-Duplicate label 2026-01-31 02:03:18 +00:00
Author
Owner

@DHowett commented on GitHub (Jul 27, 2020):

Unfortunately, yes, new tabs will assert the default starting directory from their profiles. This is going to be helped by /dup #3158.

@DHowett commented on GitHub (Jul 27, 2020): Unfortunately, yes, new tabs will assert the default starting directory from their profiles. This is going to be helped by /dup #3158.
Author
Owner

@ghost commented on GitHub (Jul 27, 2020):

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 (Jul 27, 2020): 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#9769