"Open Windows Terminal here" does not continue to work for subsequent tabs, panes #12254

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

Originally created by @TigerBeanst on GitHub (Jan 29, 2021).

Environment

Windows build number: 10.0.19042.0
Windows Terminal version (if applicable): 1.5.10271.0

Any other software?

Steps to reproduce

  1. Click "Open Windows Terminal here" in directory
  2. Click WSL or CMD (anything that different than the default tab)
    image

Else, I have been add startingDirectory in setting:

"profiles":
    {
        "defaults":
        {
            "startingDirectory" : "."
            // Put settings here that you want to apply to all profiles.
        },

Expected behavior

For example, I click "Open Windows Terminal here" in D:\Games.
What I think it should be:
image
image
image

Actual behavior

My default tab is Powershell7, it works well:
image
But if I switch to WSL or CMD:
image
image

the path goes to C:\Windows\system32.

Other

I now use this for me:

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\Background\shell\wt]
@="Open in Windows Terminal here"
"Icon"="%USERPROFILE%\\AppData\\Local\\terminal\\wt_32.ico"

[HKEY_CLASSES_ROOT\Directory\Background\shell\wt\command]
@="C:\\Users\\hjthjthjt\\AppData\\Local\\Microsoft\\WindowsApps\\wt.exe"

It works as my expect. But the new feature "Open Windows Terminal here" does not.

Originally created by @TigerBeanst on GitHub (Jan 29, 2021). <!-- 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨 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.19042.0 Windows Terminal version (if applicable): 1.5.10271.0 Any other software? ``` # Steps to reproduce 1. Click "Open Windows Terminal here" in directory 2. Click WSL or CMD (anything that different than the default tab) ![image](https://user-images.githubusercontent.com/3889846/106230766-36f3df80-622b-11eb-96df-28296e953e04.png) Else, I have been add `startingDirectory` in setting: ``` "profiles": { "defaults": { "startingDirectory" : "." // Put settings here that you want to apply to all profiles. }, ``` <!-- A description of how to trigger this bug. --> # Expected behavior For example, I click "Open Windows Terminal here" in `D:\Games`. What I think it should be: ![image](https://user-images.githubusercontent.com/3889846/106230971-9a7e0d00-622b-11eb-8d60-3be1adff88d7.png) ![image](https://user-images.githubusercontent.com/3889846/106230985-9eaa2a80-622b-11eb-920b-ec7006aa9f12.png) ![image](https://user-images.githubusercontent.com/3889846/106231001-a36ede80-622b-11eb-9187-67cebf01f19a.png) <!-- A description of what you're expecting, possibly containing screenshots or reference material. --> # Actual behavior <!-- What's actually happening? --> My default tab is Powershell7, it works well: ![image](https://user-images.githubusercontent.com/3889846/106230866-67d41480-622b-11eb-9e62-502358525f3e.png) But if I switch to WSL or CMD: ![image](https://user-images.githubusercontent.com/3889846/106230908-74f10380-622b-11eb-89be-34158d98da57.png) ![image](https://user-images.githubusercontent.com/3889846/106230916-7ae6e480-622b-11eb-8587-ab7a026f6029.png) the path goes to `C:\Windows\system32`. # Other I now use this for me: ``` Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\Directory\Background\shell\wt] @="Open in Windows Terminal here" "Icon"="%USERPROFILE%\\AppData\\Local\\terminal\\wt_32.ico" [HKEY_CLASSES_ROOT\Directory\Background\shell\wt\command] @="C:\\Users\\hjthjthjt\\AppData\\Local\\Microsoft\\WindowsApps\\wt.exe" ``` It works as my expect. But the new feature "Open Windows Terminal here" does not.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#12254