sudo
sudo copied to clipboard
sudo always opens a new window by Console Host (ConHost)
Sudo for Windows version
sudo 1.0.1
Windows build number
10.0.26100.0
Other Software
No response
Steps to reproduce
- Windows Settings → System → For developers
- Set "Terminal" to "Windows Terminal"
- Toggle "Enable sudo" on
- Set "Configure how sudo runs applications" to "In a new window"
- Run a command with sudo
Expected Behavior
Open a new Windows Terminal window. sudo used to adopt this behavior.
Actual Behavior
It always uses Console Host. It does not respect the value "Terminal" in the Settings. Console Host halts running applications just by clicking its screen. This behavior is not compatible with management commands/software. Do not use it.