[Mono-list] User name and home directory
Mathias Hasselmann
mathias.hasselmann@gmx.de
Tue, 20 May 2003 00:28:37 +0200
Patrik Olterman wrote:
> Hiya
>
> Is there any class implemented that adresses the issue of getting
> username and home directory.
>
> If I understand it right it is under system.security in windows .NET how
> can I get username and homedir in mono under linux ?
System.Environment.UserName and System.Environment.GetFolderPath() are
your friends.
Well, GetFolderPath only knows about $HOME right now, simply 'cause no
one figured out yet how to map all the special folders on *nix platform.
Guess suggestions are highly apreciated.
Ciao,
Mathias