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

Kevin Meaney ktam at yvs.eu.com
Tue Aug 13 06:21:13 PDT 2013


Programmer error. I was editing the wrong plist file. My bad. It is working as desired. Sorry for the noise.

Kevin

Sent from my iPhone

On 13 Aug 2013, at 13:51, Kevin Meaney <ktam at yvs.eu.com> wrote:

> Thanks for the reply. I thought that it connecting to the window server might be the problem. I've tried both the LSUIElement and LSBackgroundOnly in my agent's plist. I assumed the plist for the launch agent app bundle not the plist that is placed in ~/Library/LaunchAgents.
> 
> I've tried deleting the launch agent bundle multiple times, rebuilding the launch services registry and multiple restarts in a belief that this setting has been cached and hoped that doing one of these will get the setting LSBackgroundOnly to take. So far without success.
> 
> Kevin
> 
> Sent from my iPhone
> 
> On 13 Aug 2013, at 13:11, "Quinn \"The Eskimo!\"" <eskimo1 at apple.com> wrote:
> 
>> 
>> 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
>> 
>> 
>> _______________________________________________
>> launchd-dev mailing list
>> launchd-dev at lists.macosforge.org
>> https://lists.macosforge.org/mailman/listinfo/launchd-dev
> _______________________________________________
> launchd-dev mailing list
> launchd-dev at lists.macosforge.org
> https://lists.macosforge.org/mailman/listinfo/launchd-dev


More information about the launchd-dev mailing list