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

3

8

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.

Arborization answered 21/7, 2011 at 15:10 Comment(0)
A
6

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.

Arborization answered 27/7, 2011 at 5:25 Comment(0)
H
4

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

Herrera answered 14/1, 2012 at 19:19 Comment(0)
T
0

use growl inside lions sandbox

I had this problem too and followed this tutorial and growl now work in my sandboxed app.

Toft answered 24/9, 2011 at 17:30 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.