Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=frugal-tweak.git;a=commitdiff;h=a29c309c6957ecdab5aea077e341140a2527b2be
commit a29c309c6957ecdab5aea077e341140a2527b2be Author: bouleetbil <bouleet...@frogdev.info> Date: Sat Sep 18 13:47:08 2010 +0200 *don't ask the shell every time diff --git a/frugal-mono-tools/ConfSystem.cs b/frugal-mono-tools/ConfSystem.cs index ce3ac93..4f51363 100644 --- a/frugal-mono-tools/ConfSystem.cs +++ b/frugal-mono-tools/ConfSystem.cs @@ -41,6 +41,7 @@ namespace frugalmonotools public List<string> LocaleSystem = new List<string>(); public List<string> KeymapSystem = new List<string>(); public List<string> LocalTimeSystem = new List<string>(); + private string _shell=""; public string GetHostname() { return _hostname; @@ -57,7 +58,9 @@ namespace frugalmonotools return Outils.getoutput("uname -a"); } public string GetUserShell() { - return Mono.Unix.Native.Syscall.getusershell(); + if(_shell=="") + _shell= Mono.Unix.Native.Syscall.getusershell(); + return _shell; } public string GetLocale() { try{ _______________________________________________ Frugalware-git mailing list Frugalware-git@frugalware.org http://frugalware.org/mailman/listinfo/frugalware-git