Summary
Add a login item for all users via the LSSharedFileListInsertItemURL. The kLSSharedFileListGlobalLoginItems constant is used when creating the shared list in the LSSharedFileListCreate function. Before calling LSSharedFileListInsertItemURL, AuthorizationCreate is called to obtain the necessary rights. If the current user is not an administrator, the LSSharedFileListInsertItemURL function will fail.- Needs Admin: False
- Version: 1
- Author: @xorrior
Arguments
path
- Description: path to binary to execute on execution
- Required Value: True
- Default Value: None
name
- Description: The name that is displayed in the Login Items section of the Users & Groups preferences pane
- Required Value: True
- Default Value: None