Launch applications or executables at login (Mac, Windows and Linux). Perfect for NW.js and Electron apps.
npm install auto-launch
The API consists only of
var AutoLaunch = ;var minecraftAutoLauncher =name: 'Minecraft'path: '/Applications/Minecraft.app'isHidden: true // hidden on launch - only works on a mac atm.;minecraftAutoLauncher;//minecraftAutoLauncher.disable();
For NW.js or Electron apps you don't have to specify the path. It gets read from
var AutoLaunch = ;var appLauncher =name: 'My NW.js or Electron app';appLauncher;
Note: I added a method (
removeNwjsLoginItem) to remove 'nwjs helper' app login item that might have been added to peoples accounts since the name change from node-webkit to NW.js.
getCurrentPath- So you can check if the app has moved around.