-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Path variable from the environment is not respected #18026
Comments
Checked with ProcessHacker to see the environment of individual executables WindowsTerminal.exe shows the right path "c:\tweet;...." |
i see, indeed that works for new tabs but not for the one that is there when launched. i also use these settings |
Also it does not show the correct path wen a tab is created with a new instance. i have this setting |
Thanks for filing! Assuming Windows Terminal is set as your default terminal, Note #16226 may be involved here. |
Don't even know how to do that, it most likely can't be automated as MS implemented encryption for default file associations, so no it is not the default
it does, but not my preferred solution
Good find buddy To bad MS does not respect the environment and reads the registry instead, now many other devellopers also do that, a example WindowsTerminal writes to %LocalAppdata% but uses the one from the registry, i am not gonna mess with that, i attempted it years ago, but that is a global change and all other crappie apps will start to write at the new location too, so sad :( |
You must know that redirecting the known folders like AppData/LocalAppData is not supported. Please don't file bugs on us, or anyone else, for that. |
Windows Terminal is the default console host on your version of Windows unless you've turned it off explicitly, and it does not work by using "file associations". |
Doubt that, i am on win 11 and never have i seen "windows terminal" it always shows cmd.exe or consolehost.exe |
At its heart, this is a /duplicate of #15496. You can use the |
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! |
Windows Terminal version
1.22.240926002-preview
Windows build number
10.0.22621.819
Other Software
No response
Steps to reproduce
run:
cmd.exe
type:
set path=c:\tweet;%path%
type your path to terminal:
"C:\Users\Admino\AppData\Local\Temp\WindowsTerminal\x64\WindowsTerminal.exe"
open a cmd window in terminal and type:
path
WindowsTerminal.exe shows the right path "c:\tweet;...."
OpenConsole.exe also shows the right path "c:\tweet;...."
but then cmd.exe has a different path
Expected Behavior
to see the active environment
to see "c:\tweet"
Actual Behavior
shows the wrong path
probably the environment is retrieved from the registry instead of the environment
The text was updated successfully, but these errors were encountered: