Socket
Socket
Sign inDemoInstall

auto-launch

Package Overview
Dependencies
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

auto-launch

Launch node-webkit apps at login (mac & windows)


Version published
Weekly downloads
7.9K
decreased by-14.05%
Maintainers
1
Weekly downloads
 
Created
Source

node-auto-launch

Launch node-webkit apps at login (mac & windows)

Installation

npm install auto-launch

General

So far the api consists only enable disable and isEnabled.

Usage

For node-webkit apps you don't have to specify the path. It gets read from process.execPath :)

var AutoLaunch = require('auto-launch');

var nwAppLauncher = new AutoLaunch({
	name: 'My node webkit app yao'
});

nwAppLauncher.isEnabled(function(enabled){
	if(enabled) return;

	nwAppLauncher.enable(function(err){

	});

});

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.

For general apps

var AutoLaunch = require('auto-launch');

var minecraftAutoLauncher = new AutoLaunch({
	name: 'Minecraft',
	path: '/Applications/Minecraft.app',
	isHidden: true // hidden on launch - only works on a mac atm.
});

minecraftAutoLauncher.enable();

TODO:

  • Figure out what's wrong with the damn tests.
  • Add getCurrentPath - So you can check if the app has moved a roundabout.

Keywords

FAQs

Package last updated on 14 Apr 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc