Get username for setting credential
This commit is contained in:
parent
837669576a
commit
54dfdb0964
@ -717,7 +717,10 @@ namespace Novell.CASA.GUI
|
|||||||
|
|
||||||
private string GetLocalUsername()
|
private string GetLocalUsername()
|
||||||
{
|
{
|
||||||
return Environment.GetEnvironmentVariable("USERNAME");
|
if (Common.IS_LINUX)
|
||||||
|
return Environment.GetEnvironmentVariable("USER");
|
||||||
|
else
|
||||||
|
return Environment.GetEnvironmentVariable("USERNAME");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user