Console Linux sudo read password
This commit is contained in:
@@ -4,7 +4,6 @@ namespace FileTime.GuiApp.App.Configuration;
|
||||
|
||||
public class MainGuiConfiguration
|
||||
{
|
||||
|
||||
public static Dictionary<string, string?> Configuration { get; }
|
||||
static MainGuiConfiguration()
|
||||
{
|
||||
|
||||
@@ -162,8 +162,11 @@ public class AdminElevationManager : IAdminElevationManager, INotifyPropertyChan
|
||||
{
|
||||
StartInfo = new()
|
||||
{
|
||||
FileName = _configuration.CurrentValue.LinuxElevationTool,
|
||||
CreateNoWindow = true
|
||||
FileName = _configuration.CurrentValue.LinuxElevationTool,
|
||||
CreateNoWindow = true,
|
||||
RedirectStandardInput = true,
|
||||
RedirectStandardError = true,
|
||||
RedirectStandardOutput = true
|
||||
},
|
||||
EnableRaisingEvents = true
|
||||
};
|
||||
@@ -184,7 +187,7 @@ public class AdminElevationManager : IAdminElevationManager, INotifyPropertyChan
|
||||
? Process.GetCurrentProcess().MainModule?.FileName
|
||||
: _configuration.CurrentValue.ServerExecutablePath;
|
||||
|
||||
if(fileName is null) throw new Exception("Could not get server executable path");
|
||||
if (fileName is null) throw new Exception("Could not get server executable path");
|
||||
|
||||
IEnumerable<string> arguments = new[]
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user