Re: Launchd daemon and LSOpenApplication in Lion
Re: Launchd daemon and LSOpenApplication in Lion
- Subject: Re: Launchd daemon and LSOpenApplication in Lion
- From: Kyle Sluder <email@hidden>
- Date: Fri, 05 Aug 2011 23:05:43 -0700
On Fri, Aug 5, 2011 at 10:04 PM, Jens Alfke <email@hidden> 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 (email@hidden)
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:
This email sent to email@hidden