Desktop entry abstraction.
const folderDirectory = `${__dirname}/../../`;
const cmd = `cd ${folderDirectory} && npm run start -- --start`;
const entry = new DesktopEntry("myAwesomeApp", cmd);
An example extracted from 'good-roots-startup'
It creates a desktop entry and enables it at startup on linux systems.
/**
* Startup
*/
function enableStartup() {
const folderDirectory = `${__dirname}/../../`;
const cmd = `cd ${folderDirectory} && npm run start -- --start`;
const dot = new DesktopEntry("good-roots", cmd);
dot.setName("Good roots startup")
.saveAtStartup();
}