Then I got it to work using using SMLoginItemSetEnabled from this guide. However, Xcode throws bunch of deprecated warnings and errors indicating it doesn't support in Swift 4 and latest MacOS anymore. I first attempted to use Shared File List, based from this example from github. However, for Login Item, it seems there are two ways to implement Using the Service Management Framework or a Shared File List. Since I would want my app to run upon user login, I guess it's going to be either login item or launch agent. What's the latest recommended practice to achieve this for High Sierra using Swift 4?Īccording to Designing Daemons and Services, there are four different background processes on MacOS. My app is a menu app that sits in the menu extras running in the background, and I'm trying to make it to run on login.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |