imagej / imagej-updater

The automatic updater for ImageJ
Other
12 stars 15 forks source link

Killing a process when an update is pending breaks the update #108

Open hinerm opened 1 year ago

hinerm commented 1 year ago

It seems that the update process may have some reliance on a shutdown hook. If you:

  1. launch Fiji from a terminal
  2. download an update (e.g. turn on an update site and download some new resources)
  3. ctrl + c the process from the terminal

re-launching the application does not detect/finalize the pending update. Re-running the updater will warn you that there is a pending update.

My assumption based on this behavior is a shutdown hook is being skipped by ctrl + c but it could be something else. If it is a shutdown hook I'm wondering why that's necessary?