Skip to content

Fix: reopen the app after an in-app update on macOS and Linux. - #295

Merged
Amirhesp merged 2 commits into
release/1.0from
fix/update-restart
Nov 22, 2026
Merged

Amirhesp merged 2 commits into
release/1.0from
fix/update-restart

Conversation

@Amirhesp

Copy link
Copy Markdown
Collaborator

Summary

Refs #292

What

After "Update now" on macOS and Linux (AppImage), the update installed but
the app closed and did not reopen: app.restart() restarts only after the
exit finishes, and the Holochain plugin ends the process itself on exit.

  • After installing, the app starts the new version with
    --volla-wait-for-pid=<pid> and exits.
  • wait_for_previous_instance() (first line of run()): a version started
    that way waits until the old process is gone (max 2 min, then exits)
    before opening any data.
  • [update] log lines for installing, restarting and errors.
  • Windows unchanged: the installer reopens the app.

Note

  • Updating from 1.0.5 or older still closes the app once (old code);
    the release notes say "open the app again".
  • 2.0 must honour --volla-wait-for-pid before it ships (tracked for the
    develop port).

Tests

  • cargo test --features holochain_bundled --lib: 10 pass (4 new).
  • Manual: the binary started with the argument waits while the old process
    runs and starts within 2 s after it ends.
  • Full update test needs two pre-releases (e.g. 1.0.6 → 1.0.7) on macOS and
    AppImage.

TODO:

  • CHANGELOG updated

@Amirhesp
Amirhesp merged commit 625f1a5 into release/1.0 Nov 22, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant