From 54dfdb0964cbaafab62bac213fe962469fa0682c Mon Sep 17 00:00:00 2001 From: Jim Norman Date: Mon, 8 May 2006 12:10:28 +0000 Subject: [PATCH] Get username for setting credential --- c_gui/CasaMain.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/c_gui/CasaMain.cs b/c_gui/CasaMain.cs index 79b67f6d..2aa8ade5 100644 --- a/c_gui/CasaMain.cs +++ b/c_gui/CasaMain.cs @@ -717,7 +717,10 @@ namespace Novell.CASA.GUI private string GetLocalUsername() { - return Environment.GetEnvironmentVariable("USERNAME"); + if (Common.IS_LINUX) + return Environment.GetEnvironmentVariable("USER"); + else + return Environment.GetEnvironmentVariable("USERNAME"); }