Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

electron-single-instance

0.0.2 • Public • Published

Electron Single Instance

Simple module to help apps developed using Electron from opening multiple instances. This is particularly an issue on Windows.

Usage

From your application:

  • var ESI = require('electron-single-instance');
  • ESI.ensureSingleInstance('application name', mainWindow); //mainWindow is optional
  • If your application is not running, it will be launched.
  • If your application is already running, your mainWindow will be focused.

Install

npm i electron-single-instance

DownloadsWeekly Downloads

14

Version

0.0.2

License

MIT

Last publish

Collaborators

  • avatar