adding plist file in /Library/LaunchAgents...
adding plist file in /Library/LaunchAgents...
- Subject: adding plist file in /Library/LaunchAgents...
- From: "Amit Jain" <email@hidden>
- Date: Sat, 20 Jan 2007 14:23:22 +0530
Hi All,
I have added a plist file at location /Library/LaunchAgents.
The dump of that file is :
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "
http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.yourcompany.iTunesDroper</string>
<key>OnDemand</key>
<false/>
<key>ProgramArguments</key>
<array>
<string>/Applications/iTunesDroper/build/Release/iTunesDroper.app/Contents/MacOS/iTunesDroper</string>
</array>
</dict>
</plist>
Actually i have made an application that is a background process.And i have
to launch that application every time when user login or restart the
mac.Butthe peoblem what i am facing is that the application launches
only when i
restart the mac but on logoff and again login it tries for 10 times and
fails by giving the following error :
CFLog (0): CFMessagePort: bootstrap_register(): failed 1103 (0x44f), port =
0x3303, name = 'com.yourcompany.iTunesDroper.ServiceProvider'
See /usr/include/servers/bootstrap_defs.h for the error codes.
iTunesDroper[313] CFLog (99): CFMessagePortCreateLocal(): failed to name
Mach port (com.yourcompany.iTunesDroper.ServiceProvider).
My application has a window thats why i have kept it in LaunchAgents instead
of LaunchDeamons. Everything works fine but i am stuck due to above reason
please help if u can.Thanks in advance.
Regards..
@mit..
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden