Get username for setting credential

This commit is contained in:
Jim Norman 2006-05-08 12:10:28 +00:00
parent 837669576a
commit 54dfdb0964

View File

@ -717,6 +717,9 @@ namespace Novell.CASA.GUI
private string GetLocalUsername() private string GetLocalUsername()
{ {
if (Common.IS_LINUX)
return Environment.GetEnvironmentVariable("USER");
else
return Environment.GetEnvironmentVariable("USERNAME"); return Environment.GetEnvironmentVariable("USERNAME");
} }