[launchd-dev] LaunchAgent suddenly appears in Dock bouncing when CGImageSourceCopyPropertiesAtIndex is called

Quinn "The Eskimo!" eskimo1 at apple.com
Tue Aug 13 05:11:39 PDT 2013


On 12 Aug 2013, at 18:58, Kevin Meaney <ktam at yvs.eu.com> wrote:

> The LaunchAgent is its own application bundle.

Bouncing in the dock just means that the process has connected to the window server.  The window server expects such processes to start an event loop and process events, and that's what stops the bouncing.  OTOH, not doing that is fine; the window server won't be too disappointed (-:

To prevent the agent showing up in the dock, just set LSBackgroundOnly in your agent's Info.plist.

<http://developer.apple.com/library/mac/documentation/general/Reference/InfoPlistKeyReference/Articles/LaunchServicesKeys.html>

Share and Enjoy
--
Quinn "The Eskimo!"                    <http://www.apple.com/developer/>
Apple Developer Relations, Developer Technical Support, Core OS/Hardware




More information about the launchd-dev mailing list