+ [loginarray release];
+}
+
+BOOL ITDoesApplicationLaunchOnLogin(NSString *path)
+{
+ NSUserDefaults *df = [NSUserDefaults standardUserDefaults];
+ NSDictionary *loginwindow;
+ NSMutableArray *loginarray;
+ NSEnumerator *loginEnum;
+ id anItem;
+ ITDebugLog(@"Checking if \"%@\" launches at login.", path);
+ [df synchronize];
+ loginwindow = [df persistentDomainForName:@"loginwindow"];
+ loginarray = [loginwindow objectForKey:@"AutoLaunchedApplicationDictionary"];
+
+ loginEnum = [loginarray objectEnumerator];
+ while ( (anItem = [loginEnum nextObject]) ) {
+ if ( [[[anItem objectForKey:@"Path"] lastPathComponent] isEqualToString:[path lastPathComponent]] ) {
+ return YES;
+ }
+ }
+ return NO;