• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Launchd daemon and LSOpenApplication in Lion
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Launchd daemon and LSOpenApplication in Lion (From: Michael Domino <email@hidden>)
 >Re: Launchd daemon and LSOpenApplication in Lion (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: cleanly support drag-to-trash for uninstall?
  • Next by Date: Re: Does anyone else dislike Xcode 4?
  • Previous by thread: Re: Launchd daemon and LSOpenApplication in Lion
  • Next by thread: NSImageView vs IKImageView
  • Index(es):
    • Date
    • Thread