• 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: Yet another privileged-helper-tool question: how to launch from a system-preferences panel?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Yet another privileged-helper-tool question: how to launch from a system-preferences panel?


  • Subject: Re: Yet another privileged-helper-tool question: how to launch from a system-preferences panel?
  • From: Damien DeVille <email@hidden>
  • Date: Wed, 13 Jan 2016 16:00:34 +0000

Hey Motti,

Could you maybe have a Cocoa app in your pref pane bundle that could talk to the privileged daemon? You would launch it from the pref pane, it would bless the tool on your behalf and you would communicate between the privileged app and the pref pane via the helper app?

That’s definitely not ideal but it sounds like it could solve your problem?

Thanks,
Damien

> On Jan 13, 2016, at 9:42 AM, Motti Shneor <email@hidden> wrote:
>
> Hi.
>
> I tried to modify the SMJobBless sample from Apple to use a System-Preference panel, instead of an independent Cocoa App, to launch a privileged launchd daemon.
>
> I build both the preferences panel and my helper tool in the same way, and apply (using the attached python script) the “trust” entries of both info.plist files (of my preferences panel and the helper tool). It all runs - but fails to launch the daemon.
>
> I suspect it is because my Preferences panel, although being a code bundle - is loaded and runs inside of the “System Preferences” application, which both my helper-tool doesn’t trust, and doesn’t trust my helper tool.
>
> Now — of course I cannot modify the “System Preferences” application’s info.plist. What then can I do? Idea anyone?
>
> Motti Shneor
>
> _______________________________________________
>
> 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


_______________________________________________

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


  • Follow-Ups:
    • Re: Yet another privileged-helper-tool question: how to launch from a system-preferences panel?
      • From: Motti Shneor <email@hidden>
References: 
 >Yet another privileged-helper-tool question: how to launch from a system-preferences panel? (From: Motti Shneor <email@hidden>)

  • Prev by Date: Re: How to save a Dictionary Network to a plist file?
  • Next by Date: adding frameworks to my project
  • Previous by thread: Yet another privileged-helper-tool question: how to launch from a system-preferences panel?
  • Next by thread: Re: Yet another privileged-helper-tool question: how to launch from a system-preferences panel?
  • Index(es):
    • Date
    • Thread