Fixed an issue where root processes could not be exited on macOS

pull/7673/head
2dust 2025-07-29 20:23:42 +08:00
parent f779e311ed
commit dad35f57d0
2 changed files with 2 additions and 2 deletions

View File

@ -110,7 +110,7 @@ public class CoreAdminHandler
}
else
{
sb.AppendLine($"sudo -S -k -p '' {cmdLine}");
sb.AppendLine($"sudo -S {cmdLine}");
}
await File.WriteAllTextAsync(shFilePath, sb.ToString());

View File

@ -65,7 +65,7 @@ public partial class SudoPasswordInputView : UserControl
try
{
// Use sudo echo command to verify password
var arg = new List<string>() { "-c", "sudo -S -k -p '' echo SUDO_CHECK" };
var arg = new List<string>() { "-c", "sudo -S echo SUDO_CHECK" };
var result = await CliWrap.Cli
.Wrap(Global.LinuxBash)
.WithArguments(arg)