Adding an app to Login Items (and more)


I’m working on the migration of an app from TideSDK (now spectacularly defunct) to Electron and I’m in the process of trying to create a skeleton that hits all of the key features of the existing app. At the moment I’m stuck on 2 related topics:

  1. Adding the app to the Login/Startup Items (OS X & Windows).
  2. Making that preference configurable.

I don’t see any API that looks like it handles those tasks. Can someone point me in the right direction?

Much appreciated.