sindresorhus / LaunchAtLogin-Legacy

Add “Launch at Login” functionality to your macOS app in seconds
MIT License
1.56k stars 123 forks source link

'SMCopyAllJobDictionaries' was deprecated in OS X 10.10 #12

Closed tomatoTom closed 5 years ago

tomatoTom commented 6 years ago

'SMCopyAllJobDictionaries' was deprecated in OS X 10.10

warning in LaunchAtLogin.swift (line9).

sindresorhus commented 6 years ago

Apple deprecated that API without providing an alternative. I plan to use it as long as it's available. There are workarounds I can implement if Apple ever removes the API, so rest assured, this module will be made to work even then.

Radar: https://openradar.appspot.com/radar?id=5033815495933952 (Please duplicate it)

sindresorhus commented 5 years ago

Moved this to the readme: https://github.com/sindresorhus/LaunchAtLogin#faq

sindresorhus commented 4 years ago

I just noticed that the SMCopyAllJobDictionaries header says:

For the specific use of testing the state of a login item that may have been enabled with SMLoginItemSetEnabled() in order to show that state to the user, this function remains the recommended API. A replacement API for this specific use will be provided before this function is removed.

I'm not sure if this was always there or if it's new.