On Jan 15, 2010, at 6:23 AM, Karl Moskowski wrote:
I've been trying to use SMJobSubmit( ) to have launchd run my LaunchAgent. The weird thing is, it works on my MacBook Pro at home, but on my iMac it fails - the return code is false, but the outError argument is NULL. Both machines are running up-to-date Snow Leopard and using Xcode 3.2.
Source for the app (a Sparkle utility to check all apps for updates) is at <http://bitbucket.org/kolpanic/coruscation/>. I'd appreciate any insight.
I create a NSDictionary corresponding to the plist, then submit the job with: CFErrorRef *error = NULL; if (!SMJobSubmit(kSMDomainUserLaunchd, (CFDictionaryRef)plist, NULL, error)) NSLog(@"Error in SMJobSubmit: %@", (NSError *)error); if (error != NULL) CFRelease(error);
Is there anything logged to the system log? -- Damien Sorresso BSD Engineering Apple Inc.