asticode/go-astilectron

Bug: Electron window is shown after computer restart on macOS

Opened this issue · 2 comments

Hi, when I restart my MacBook and select the reopen windows option it doesn't start the application and shows an Electron window instead.

  1. Build the demo application from https://github.com/asticode/go-astilectron-demo
  2. Move the .app file to the applications directory and open the app
  3. Restart macOS and select Reopen windows when logging back in

Result: It shows and window of Electron instead of the demo application.

This issue was reported here kubenav/kubenav#257 with a screenshot of what is shown after restart (looks similar for the demo application):

Screenshot

It looks like it doesn't run the original parent process:

Processes before the restart:
fresh

Process after the restart:
restart

I tested this with Electron 7.x and 9.x. I'm using the following version of go-astilectron:

github.com/asticode/go-astikit v0.9.1
github.com/asticode/go-astilectron v0.18.0
github.com/asticode/go-astilectron-bootstrap v0.4.0
github.com/asticode/go-astilectron-bundler v0.7.2

Do you have an idea what the problem could be?

@ricoberger this is linked to this Windows 10 Jumplist bug. I don't have a solution for this as of now.

Hi @asticode, thanks for the fast reply. When you found a solution for this and need someone for testing please let me now.