electron-detach
This module restart the app as a detached electron process, allowing an electron app to be started from terminal and survive parent process closure.
Installation
npm install --save electron-detach
Usage
import electronDetach from 'electron-detach';
electronDetach({
requireCmdlineArg: false
});
Options
- requireCmdlineArg
only restart the app if --detach command line argument is present. Defaults to false.
License
The MIT License (MIT)
Copyright (c) 2015 Andrea Parodi