mirror of
https://github.com/2dust/v2rayN.git
synced 2026-04-16 12:35:46 +00:00
Specify UID in RunProcess
This commit is contained in:
parent
6ccf10cda7
commit
dc45d96395
1 changed files with 2 additions and 2 deletions
|
|
@ -216,7 +216,7 @@ public class CoreManager
|
||||||
|
|
||||||
#region Process
|
#region Process
|
||||||
|
|
||||||
private async Task<ProcessService?> RunProcess(CoreInfo? coreInfo, string configPath, bool displayLog, bool mayNeedSudo)
|
private async Task<ProcessService?> RunProcess(CoreInfo? coreInfo, string configPath, bool displayLog, bool mayNeedSudo, uint UID)
|
||||||
{
|
{
|
||||||
var fileName = CoreInfoManager.Instance.GetCoreExecFile(coreInfo, out var msg);
|
var fileName = CoreInfoManager.Instance.GetCoreExecFile(coreInfo, out var msg);
|
||||||
if (fileName.IsNullOrEmpty())
|
if (fileName.IsNullOrEmpty())
|
||||||
|
|
@ -234,7 +234,7 @@ public class CoreManager
|
||||||
{
|
{
|
||||||
_linuxSudo = true;
|
_linuxSudo = true;
|
||||||
await CoreAdminManager.Instance.Init(_config, _updateFunc);
|
await CoreAdminManager.Instance.Init(_config, _updateFunc);
|
||||||
return await CoreAdminManager.Instance.RunProcessAsLinuxSudo(fileName, coreInfo, configPath);
|
return await CoreAdminManager.Instance.RunProcessAsLinuxSudo(fileName, coreInfo, configPath, UID);
|
||||||
}
|
}
|
||||||
|
|
||||||
return await RunProcessNormal(fileName, coreInfo, configPath, displayLog);
|
return await RunProcessNormal(fileName, coreInfo, configPath, displayLog);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue