This is the code that I'm running to make my app start on startup:
app.setLoginItemSettings({ openAtLogin: true });
This works but the problem is it is running an extra window of electron (see image).
How do I stop this? I am using electron-forge template.
I got it now, this happens because I set the auto start-up to true when on development, which cases the electron to startup... I just disabled the electron startup on Windows Startup.