question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 3 years ago
  • Reactions:12
  • Comments:13 (4 by maintainers)

github_iconTop GitHub Comments

11reactions
alectrocutecommented, Feb 18, 2021

Still relevant.

3reactions
johnnyopaocommented, Oct 20, 2020

Also seeing the same issue. Nothing we’ve tried so far has relaunched the app

electron-builder 21.1.5 electron-updater 4.3.4

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found