Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'kLSSharedFileListSessionLoginItems' was deprecated in OS X 10.11: Use a LaunchAgent, XPCService or the ServiceManagement APIs instead. #10

Closed
miniLV opened this issue Sep 16, 2019 · 1 comment

Comments

@miniLV
Copy link

miniLV commented Sep 16, 2019

The following warning is run in swift5: 'kLSSharedFileListSessionLoginItems' was deprecated in OS X 10.11: Use a LaunchAgent, XPCService or the ServiceManagement APIs instead.

@Econa77
Copy link
Member

Econa77 commented Mar 6, 2020

@miniLV Sorry for late reply.
The only way to add a macOS login item that is not currently deprecated is to create a helper application using ServiceManagementFramework API or add it using AppleScript 😢
To use AppleScript, need to get SystemEvent permission and it is not suitable for adding to login items.
And Creating helper applications has a very different approach and is not suitable for support in this library.

For this reason, support for this library itself will end when the use of the API is terminated.

ref: https://developer.apple.com/library/archive/documentation/MacOSX/Conceptual/BPSystemStartup/Chapters/CreatingLoginItems.html#//apple_ref/doc/uid/10000172i-SW5-SW5

@Econa77 Econa77 closed this as completed Mar 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants