quitAndInstall() Not Restarting App on macOS Big Sur
See original GitHub issue- Version: 22.8.1 (electron-builder), 4.3.5 (electron-updater)
- Electron Version: 7.3.2
- Electron Type (current, beta, nightly): current
- Target: macOS
The auto-update flow (checkForUpdates
, update-downloaded
, etc.) is working for Mojave, Catalina, and Big Sur. The update is successfully installed on each version on re-opening of the app. On calling quitAndInstall
however, the app only relaunches on Mojave and Catalina but fails to restart the app on Big Sur.
In addition to the traditional quitAndInstall
call, we’ve attempted to work around the inability to restart the app on Big Sur using the following relaunch code but these have all failed to successfully relaunch post-update:
app.relaunch();
app.relaunch({ execSync: '/Applications/AppName.app'});
app.relaunch({ args: process.argv.slice(1).concat(['--relaunch']) });
As Big Sur is planned to be release out of beta in the near future, it is probably good to get in front of it to ensure app relaunch in quitAndInstall
works when users update.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:12
- Comments:13 (4 by maintainers)
Top Results From Across the Web
How to force an app to quit on your Mac - Apple Support
To quit a Mac app normally, choose Quit from the app's menu in the menu bar, or press Command-Q. If the app doesn't...
Read more >Prevent apps and windows from reopening on Mac
Choose Apple menu > System Settings. Click Desktop & Dock in the sidebar. Scroll down on the right and turn on “Close windows...
Read more >If an app freezes or quits unexpectedly on Mac - Apple Support
Choose Apple menu > Force Quit, select the app in the dialog that appears, then click Force Quit. If the app quit, reopen...
Read more >Quit an app or process in Activity Monitor on Mac
Use Activity Monitor on your Mac to quit, force quit, or send a signal to terminate a process, if the process is in...
Read more >What's new in the updates for macOS Big Sur - Apple Support
macOS Big Sur 11.6.7 fixes an issue where Mail and apps, such as Microsoft Outlook, cannot open attachments if the app required to...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Still relevant.
Also seeing the same issue. Nothing we’ve tried so far has relaunched the app
electron-builder
21.1.5
electron-updater4.3.4