Re: CGSessionCopyCurrentDictionary
Re: CGSessionCopyCurrentDictionary
- Subject: Re: CGSessionCopyCurrentDictionary
- From: "Jeff Schindler" <email@hidden>
- Date: Thu, 10 Nov 2005 11:14:52 -0500
The headers will be corrected. The old behavior was incorrect, and
considered to be a bug.
Is kCGSessionLoginDoneKey guaranteed to be a valid key to check in
both 10.3 and 10.4?
Yes. The keys kCGSessionLoginDoneKey and kCGSSessionOnConsoleKey are
present and valid in 10.3 and 10.4.
I suspect that what is happening in 10.4.3 is that
CGSessionCopyCurrentDictionary is returning non-null prior to
login, which I believe is not the case pre-10.4.3 - is that possible?
CGSessionCopyCurrentDictionary() can return NULL if the caller is not
running within a security session associated with a graphical user
interface. You can get this result wen running a program from SSH,
for example.
Great, thanks Mike!
_______________________________________________
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