How to check which applications enabling SMLoginItemSetEnabled?
Terminal or which folder, file contains it?
I run 2 applications below but it can't launch at login => I need check helper app is enabling or not.
How to check which applications enabling SMLoginItemSetEnabled?
Terminal or which folder, file contains it?
I run 2 applications below but it can't launch at login => I need check helper app is enabling or not.
                        
                            
                        
                        
                            On
                            
                                                    
                    
                You can check the login item status using SMJobCopyDictionary(or even SMCopyAllJobDictionaries) like this:
- (BOOL)launchAtLoginWithBundleId:(NSString*)bundleId {
    CFDictionaryRef dict = SMJobCopyDictionary(kSMDomainUserLaunchd, (CFStringRef)bundleId);
    if (dict == NULL) {
        return NO;
    }
    CFRelease(dict);
    return YES;
}
                        
Apple didn't recommend use
Better use
SMCopyAllJobDictionariesmethod