[launchd-dev] Having issue with launchAgents
Arjun SM
arjun.sm at gmail.com
Wed Jan 21 22:43:00 PST 2009
Hi all,
I have created a custom Menulet which i have made it as a launchAgent .
The problem i am facing is after installation if i logout and login again my
Menulet doesn't come up at all.
I checked the Console.log for more information on it and gave me following
error messages which i am not understanding.
22/01/09 11:47:22 AM Menulet[2941] kCGErrorInvalidConnection :
CGSGetWindowBounds: Invalid connection
22/01/09 11:47:22 AM Menulet[2941] kCGErrorCannotComplete :
CGSDeviceGetGeometry: Invalid device window
22/01/09 11:47:22 AM Menulet[2941] kCGErrorCannotComplete :
CGSDeviceGetGeometry: Invalid device window
22/01/09 11:47:22 AM Menulet[2941] kCGErrorInvalidConnection :
CGSGetWindowGeometry: Invalid connection
22/01/09 11:47:22 AM Menulet[2941] kCGErrorInvalidConnection :
CGSGetWindowGeometry: Invalid connection
22/01/09 11:47:22 AM Menulet[2941] kCGErrorInvalidConnection :
CGSGetWindowGeometry: Invalid connection
22/01/09 11:47:22 AM Menulet[2941] kCGErrorInvalidConnection :
CGSGetWindowGeometry: Invalid connection
22/01/09 11:47:22 AM Menulet[2941] kCGErrorCannotComplete :
CGSDeviceGetGeometry: Invalid device window
22/01/09 11:47:22 AM Menulet[2941] kCGErrorCannotComplete :
CGSDeviceSynchronize: Invalid device window
I was wondering if it has anything to do with my plist which i have
installed in /Library/LaunchAgents/com.myself.menulet.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "
http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Disabled</key>
<false/>
<key>KeepAlive</key>
<true/>
<key>Label</key>
<string>com.myself.menulet</string>
<key>ProgramArguments</key>
<array>
<string>/Library/Application
Support/Applications/Menulet.app/Contents/MacOS/Menulet</string>
</array>
<key>QueueDirectories</key>
<array/>
<key>RunAtLoad</key>
<true/>
</dict>
</plist>
should i add any other key to this plist.
i did go through this technical document and decided not to add
"LimitLoadtoSessionType" since by default Aqua is selected.
http://developer.apple.com/technotes/tn2005/tn2083.html#SECWINDOWSERVERLIFECYCLE
Please help
~Arjun
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/launchd-dev/attachments/20090122/17ebab41/attachment.html>
More information about the launchd-dev
mailing list