Re: Obtaining Current User Name
Re: Obtaining Current User Name
- Subject: Re: Obtaining Current User Name
- From: Ali Ozer <email@hidden>
- Date: Tue, 3 Jul 2001 08:52:37 -0700
>
Could somebody please tell me how to obtain information about the
>
currently logged in user?
>
(Sorry if this is a dumb question, but I really don't know where to
>
look...)
Now if you had played BlastApp diligently, and finished the game, you
would know it puts up a panel with your full name on it --- which would
have pointed you at the BlastApp sources (available on your machine),
which would reveal the functions others have mentioned. 8-)
Of course, BlastApp is Cocoa/Java, so you have
String name = NSSystem.currentFullUserName();
if (name == null) name = NSSystem.currentUserName();
Ali