gsudo v2.5.0
What's Changed
With the release of Microsoft Sudo in Windows 11 24H2, both needs to coexist peacefully. When Microsoft Sudo is present, the sudo command no longer redirects to gsudo by default, so:
- Added a new config setting
PathPrecedence: When set totrue, it will ensuregsudoappears first in thePATHvariable, ensuring thesudokeyword startsgsudoinstead of Microsoft Sudo.- Call
gsudo config PathPrecedence trueto activate. Please restart all your consoles to ensure the change makes effect.- There is a bug, so this change works only after log-off or restart. Sorry! Will be fixed in v2.5.1
- Set it back to
falseto go back to normal.
- Call
If a user with ms-sudo muscle memory, accidentally runs gsudo, let's ensure gets a good user experience with:
- Added support for ms-sudo styled arguments such as
--inline,--disable-input,--preserve-env,--new-window - Added the ability to start the elevation in a specified folder with
--chdir {directory}(or uppercase-D {directory}) in https://github.com/gerardog/gsudo/pull/355
Also:
- Added text descriptions to
gsudo configcommand, so users can read each config use, in https://github.com/gerardog/gsudo/pull/354 - Added
SecurityEnforceUacIsolation/DisableInputhandling also in Attached and TokenSwitch elevation Modes. - For some reason Windows doesn't focus the UAC popup if it is configured as
Do Not Dim. The fix (#85) makes gsudo focus the popup.
Full Changelog: https://github.com/gerardog/gsudo/compare/v2.4.4...v2.5.0