<p dir="auto">I want to restart the whole electron app when I press a button from the index.html. It is not just reload the html page. I want to restart the whole electron app. Is there a way?</p>
<p dir="auto">Currently there is no app.restart function. I think a simple method that restarts the app is quite useful.</p>
<p dir="auto">In my application, I do database updates after downloading a new version of an app.<br>
After those database updates, it's best to just restart the app to prevent database problems.</p>
<p dir="auto">The app.restart method can also be reused in the <code class="notranslate">auto-updater</code>.</p>