11.51 Does not respect default terminal application choice

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
Klaster_1
Junior Member
Junior Member
Posts: 3
Joined: 2025-06-27, 07:08 UTC

11.51 Does not respect default terminal application choice

Post by *Klaster_1 »

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).
User avatar
white
Power Member
Power Member
Posts: 6022
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: 11.51 Does not respect default terminal application choice

Post by *white »

Klaster_1 wrote: 2025-06-27, 07:14 UTC I expect totalcmd to respect my system preferences.
Are you saying it works differently when using the right-click menu in Explorer?
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50935
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: 11.51 Does not respect default terminal application choice

Post by *ghisler(Author) »

3a opens the shell set in the COMSPEC environment variable.
3b is handled by Windows itself, I don't have any influence on it.
Author of Total Commander
https://www.ghisler.com
Klaster_1
Junior Member
Junior Member
Posts: 3
Joined: 2025-06-27, 07:08 UTC

Re: 11.51 Does not respect default terminal application choice

Post by *Klaster_1 »

3a opens the shell set in the COMSPEC environment variable.
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?
3b is handled by Windows itself, I don't have any influence on it.
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?

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"?
User avatar
white
Power Member
Power Member
Posts: 6022
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: 11.51 Does not respect default terminal application choice

Post by *white »

2Klaster_1
I guess you are running TC as Administrator?
Klaster_1
Junior Member
Junior Member
Posts: 3
Joined: 2025-06-27, 07:08 UTC

Re: 11.51 Does not respect default terminal application choice

Post by *Klaster_1 »

white wrote: 2025-06-27, 13:25 UTC 2Klaster_1
I guess you are running TC as Administrator?
Wow, that indeed was the case! Now both scenarios launch Windows Terminal, thank you so much 🙇 I really tried to figure this out myself before creating a thread, but found nothing relevant besides COMSPEC hacks.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50935
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: 11.51 Does not respect default terminal application choice

Post by *ghisler(Author) »

Moderator message from: ghisler(Author) » 2025-06-29, 07:52 UTC

Moved to English forum
Author of Total Commander
https://www.ghisler.com
Post Reply