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,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");
} }