On Fri, Aug 5, 2011 at 10:04 PM, Jens Alfke <j...@mooseyard.com> wrote:
> Yup. I’m frankly surprised it even used to work in 10.5 and 10.6.

One unfortunate side effect (for me) of this change is that my
10.6-era shell function for checking if I'm currently at a console no
longer works. I used to use `launchctl bslist | grep -Fxq 'A
com.apple.windowserver.session` for checking if my Terminal was
spawned from a WindowServer session to customize my prompt and so that
I wouldn't accidentally try to launch Xcode on our (headless) build
servers.

That said, if all you're doing is *launching* new apps in the user's
WindowServer context, LSOpenApplication *should* work according to
TN2083. However, Lion now supports multiple console login sessions, as
seen in Screen Sharing.app. I have no idea how the documented
UID-sniffing behavior in LSOpenApplication fits into this new reality.

--Kyle Sluder
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to