11.51 Does not respect default terminal application choice
Moderators: Hacker, petermad, Stefan2, white
11.51 Does not respect default terminal application choice
How to reproduce:
1. Have Windows 11 with Windows Terminal (wt)
2. In wt settings, set "Default terminal application" to "Windows Terminal".
3a. In totalcmd, run "Commands \ Open command prompt window"
3b. Open dir context menu by long pressing right mouse button with left shift held down. Choose "Open PowerShell window here".
What happens:
cmd.exe is opened for both scenarios.
Expected:
Windows Terminal is opened.
Notes:
I expect totalcmd to respect my system preferences. I don't want to mess with comspec, launch scripts, which doesn't even help completely - it works for scenario 3a, but not 3b (still opens cmd).
1. Have Windows 11 with Windows Terminal (wt)
2. In wt settings, set "Default terminal application" to "Windows Terminal".
3a. In totalcmd, run "Commands \ Open command prompt window"
3b. Open dir context menu by long pressing right mouse button with left shift held down. Choose "Open PowerShell window here".
What happens:
cmd.exe is opened for both scenarios.
Expected:
Windows Terminal is opened.
Notes:
I expect totalcmd to respect my system preferences. I don't want to mess with comspec, launch scripts, which doesn't even help completely - it works for scenario 3a, but not 3b (still opens cmd).
Re: 11.51 Does not respect default terminal application choice
Are you saying it works differently when using the right-click menu in Explorer?
- ghisler(Author)
- Site Admin
- Posts: 50935
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: 11.51 Does not respect default terminal application choice
3a opens the shell set in the COMSPEC environment variable.
3b is handled by Windows itself, I don't have any influence on it.
3b is handled by Windows itself, I don't have any influence on it.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: 11.51 Does not respect default terminal application choice
That's an implementation detail. As a user, I expect for this to do what I setup in my OS, where have "Window Terminal" set under OS setting "System \ For developers \ Terminal". Why would I care about COMSPEC if Windows lets me configure this in Settings?3a opens the shell set in the COMSPEC environment variable.
Then how come Explorer opens wt from the same action and tc opens cmd? Surely there's something amiss in how TC triggers the menu, maybe there's an API call parameter that TC doesn't handle because the default terminal setting was added so recently?3b is handled by Windows itself, I don't have any influence on it.
What's the chance that Windows introduced this setting a while ago and totalcmd just needs to use it? Does it check contents of "HKEY_CURRENT_USER\Console\%%Startup"? Maybe do that and update COMSPEC in-process to point to the "wt"?
Re: 11.51 Does not respect default terminal application choice
2Klaster_1
I guess you are running TC as Administrator?
I guess you are running TC as Administrator?
Re: 11.51 Does not respect default terminal application choice
Wow, that indeed was the case! Now both scenarios launch Windows Terminal, thank you so much
- ghisler(Author)
- Site Admin
- Posts: 50935
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: 11.51 Does not respect default terminal application choice
Moderator message from: ghisler(Author) » 2025-06-29, 07:52 UTC
Moved to English forum
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com