• 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: Alternative to bootstrap_register?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Alternative to bootstrap_register?


  • Subject: Re: Alternative to bootstrap_register?
  • From: Uli Kusterer <email@hidden>
  • Date: Mon, 30 Nov 2009 12:06:08 +0100

On 27.11.2009, at 18:40, Damien Sorresso wrote:
> Put it in ~/Library/LaunchAgents. launchd has per-user variants. Or is there some reason this job needs to run in a privileged context?


 We don't need a privileged service, not at all. The problem is that this code may get used from several applications, and each of these applications needs a different instance. So we're registering a dynamic service name. It seems very messy to create files on disk for this, which need to be maintained, changed and reloaded when our app gets updated etc.

 Also, bootsrap_check_in() doesn't seem to let you check out again when the helper is no longer needed or our app gets updated.

 bootstrap_register() seems like such a clean way to achieve this, so I'd really like to know what it does wrong that it is being deprecated, and why we'd need to resort to hacks like plists on disk here. It all seems kind of arbitrary, and neither Apple's docs nor several questions on this and previous threads about bootstrap_register() ever got an answer why it is deprecated.

Cheers,
-- Uli Kusterer
"The witnesses of TeachText are everywhere..."



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Alternative to bootstrap_register?
      • From: Damien Sorresso <email@hidden>
References: 
 >Alternative to bootstrap_register? (From: Uli Kusterer <email@hidden>)
 >Re: Alternative to bootstrap_register? (From: Jean-Daniel Dupas <email@hidden>)
 >Re: Alternative to bootstrap_register? (From: Uli Kusterer <email@hidden>)
 >Re: Alternative to bootstrap_register? (From: Jean-Daniel Dupas <email@hidden>)
 >Re: Alternative to bootstrap_register? (From: Alastair Houghton <email@hidden>)
 >Re: Alternative to bootstrap_register? (From: Uli Kusterer <email@hidden>)
 >Re: Alternative to bootstrap_register? (From: Damien Sorresso <email@hidden>)
 >Re: Alternative to bootstrap_register? (From: Uli Kusterer <email@hidden>)
 >Re: Alternative to bootstrap_register? (From: Damien Sorresso <email@hidden>)

  • Prev by Date: Re: Building a bootable Darwin from source?
  • Next by Date: Re: Building a bootable Darwin from source?
  • Previous by thread: Re: Alternative to bootstrap_register?
  • Next by thread: Re: Alternative to bootstrap_register?
  • Index(es):
    • Date
    • Thread