Quick questions for the electron team regarding auto-launching!
- Windows 7 x64
- Windows 8 x64
- Windows 8.1 x64
- Windows 10 x64
I’ve been using auto-launch in production, and I have noticed that auto-launch doesn’t reliably relaunch application when the computer restarts. Locally, on my computer it restarts fine, but on our clients’ servers, it doesn’t necessarily reboots every time. This is problematic because our app is a service app that establishes the link between our clients’ servers and our cloud infrastructure to offer them analytics on their latest data.
Let’s take a case in point. One of our client’s server restarts daily. Some days the application boots, some others it doesn’t. On the days that the application is down, it does not output any logs. My assumption is that the application simply doesn’t start. It is really hard to test and debug because not only do I not have control over the server, but I have no idea how to test the functionality.
• Do you have any idea of how I can test for auto-launch?
• Does auto-launch only kick in when the user on which the app is installed logs in?
=> If so, is it possible to make auto-launch launch automatically whether or not the user logs in?
• I’ll be deploying a newer version of electron in the next release (electron 4.0.5). I’m considering switching to the
setLoginItemSettings API. Similarly to the previous question, does
setLoginItemSettings only kicks in when the user on which the app is installed logs in? If so, is it possible to make the app launch automatically on computer boot rather than user logging?
• If we assume that the platform is always going to be Windows 7+, is there a manual way to setup the app to boot at server boot? Something like modifying registry keys or creating a service/window’s cron-equivalent?
Thanks a lot for your answer, you are all lifesavers
Have a great evening