Skip to content
Browse files

Set the blessed key that keeps pboxd from appearing in the Dock along…

… side our app

If SandboxService.plist doesn't have JoinExistingSession as YES
in the XPCService dictionary, the XPC service will instantiate
its own security session, separate from the app. While this seems
inoccous, it may lead to subtle (or, in our case, not so subtle)
problems. In our case, as a sandboxed NSDocument based app, pboxd
is instantiated on launch. When our app is in a different
security session – as it would be without this key – the Dock
actually shows pboxd running alongside our app, looking like our
app. Effectively, the user sees two copies of our app but one
seems totally broken. Setting JoinExistingSession to YES makes
everyone happy.
  • Loading branch information...
1 parent 56aa598 commit 82eaa63db20b0edf35bbcb634cf0c5fce5cb93c6 @ryannielsen ryannielsen committed
Showing with 2 additions and 0 deletions.
  1. +2 −0 SandboxService.plist
View
2 SandboxService.plist
@@ -24,6 +24,8 @@
<dict>
<key>ServiceType</key>
<string>Application</string>
+ <key>JoinExistingSession</key>
+ <false/>
</dict>
</dict>
</plist>

0 comments on commit 82eaa63

Please sign in to comment.
Something went wrong with that request. Please try again.