Reset sudo password after failed Unix elevation

This allows to request the sudo password from user again on next
elevation attempt without any need for full application restart.
This commit is contained in:
maximilionus 2025-07-23 17:52:13 +03:00
parent 69c1f4713e
commit a5a1c845dd

View file

@ -64,6 +64,7 @@ public class CoreAdminHandler
catch (Exception ex) catch (Exception ex)
{ {
_linuxSudoPid = -1; _linuxSudoPid = -1;
AppHandler.Instance.LinuxSudoPwd = "";
throw new Exception(ResUI.FailedToRunCore, ex); throw new Exception(ResUI.FailedToRunCore, ex);
} }