Re: CGSessionCopyCurrentDictionary
Re: CGSessionCopyCurrentDictionary
- Subject: Re: CGSessionCopyCurrentDictionary
- From: Mike Paquette <email@hidden>
- Date: Wed, 9 Nov 2005 20:54:32 -0800
On Nov 9, 2005, at 8:02 PM, Jeff Schindler wrote:
Can anyone tell me if CGSessionCopyCurrentDictionary has changed in
10.4.3? We have a SystemLoginItem that calls this to determine the
login state of the user - it works fine under 10.4.2, but on 10.4.3
it appears that some of the expected values are missing. The
headers say that the values are guaranteed by the system to be
present in the session dictionary, but this does not appear to be
the case under 10.4.3. Specifically, it appears that
kCGSessionUserNameKey is not present when we call this (which would
be just prior to the login screen, when the SystemLoginItem
starts). TIA.
There is no valid user name at that point. No user has logged in yet.
To check the login state of the session, use the key
kCGSessionLoginDoneKey. The value will be kCFBooleanFalse if no user
has logged in yet, and kCFBooleanTrue if a user is logged in.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden