Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are the code sign entitlement keys needed for using Growl on Lion?

Submission to the Mac App Store since Lion requires all apps to specify code sign entitlements. As with Growl it was never clear what entitlements I should specify and some google-fu gives no answer to my question.

I keep seeing this in the console:

GrowlApplicationBridge: Could not send open-document event to register this application with Growl because AESend returned -600/no eligible process with specified descriptor

Edit: After updating entitlements with:

<key>com.apple.security.temporary-exception.apple-events</key>
<array>
    <string>com.Growl.GrowlHelperApp</string>
</array>

Now I see this in the console instead:

*** attempt to post distributed notification 'GrowlNotification' thwarted by sandboxing.

Edit x2: To be more specific, the problem is with NSDistributedNotificationCenter which allows the app to post notifications to other processes.

like image 640
koo Avatar asked Jul 21 '11 15:07

koo


2 Answers

I asked Apple about this with one Technical Support Incident. They suggested posting distributed notifications is possible without any entitlements with nil valued userInfo dictionaries. But there is no entitlement at the moment for posting distributed notifications with userInfo dictionaries.

Because Growl must post distributed notifications with userInfo dictionaries, currently it is not possible to use Growl framework within the application sandbox.

like image 170
koo Avatar answered Sep 30 '22 17:09

koo


With regards to sandboxing, in Growl 1.3+ the framework detects the sandbox and disables the old bridge. Growl.framework 1.3+ inside a sandbox uses the new GNTP protocol, and either needs the network client entitlement, or you can use the XPC that we provide in the SDK.

http://growl.info/documentation/developer/implementing-growl.php#growl1.3sdkchanges has more information on this.

http://groups.google.com/group/growl-development is available for anyone who has a development questions (like about sandboxing).

Chris

like image 28
Christopher Forsythe Avatar answered Sep 30 '22 17:09

Christopher Forsythe