Skip to content

Desktop offers to move itself to Applications when it runs from its disk image - #2937

Merged
davidmckayv merged 2 commits into
mainfrom
desktop-move-to-applications
Dec 4, 2026
Merged

davidmckayv merged 2 commits into
mainfrom
desktop-move-to-applications

Conversation

@davidmckayv

@davidmckayv davidmckayv commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

What

OpenBot Desktop on a Mac now offers to move itself to Applications when it is open from its disk image, or from a read-only copy Gatekeeper made (App Translocation). It asks at launch, before any window opens or anything starts, and again when somebody chooses Update and restart or Check for Updates….

  • At launch: "Move OpenBot to Applications?" with Move to Applications and Not now.
  • At update time: "OpenBot 1.2.11 is available. OpenBot is open from its disk image, so it can't update itself. Move it to Applications, then update from there." with the same two buttons. Not now leaves the banner saying "Couldn't install the update: OpenBot has to be in Applications to update."
  • Move: OpenBot is copied with ditto into /Applications, or ~/Applications when /Applications isn't writable. Its quarantine is lifted so Gatekeeper doesn't translocate the copy again. An OpenBot already there goes to the Trash. Then this copy quits, the moved app opens, and the disk image is ejected. At update time OpenBot is stopped as for an update first, and the local backend keeps running. A copy that fails leaves everything where it was and says how to move it by hand.

Why

A person ran 1.2.3 from the mounted disk image. Both the update banner and Check for Updates… failed with Read-only file system (os error 30) at path "/Volumes/OpenBot/tauri_current_app…". The updater installs by swapping the app in place and makes its temporary folder next to the app (tauri-plugin-updater 2.14.1, install_inner). A disk image and a translocated copy are both read-only, so the install failed after the whole update had downloaded. The feed and the signatures are fine: updates to 1.2.11 are completing. Mac install failures have been steady at 2 to 5 installs a day on every release since Nov 20.

How the leading apps do it

OpenBot follows them. One difference from LetsMove: there is no "Don't ask again" box. A copy on a disk image can never update, so OpenBot asks at each launch until it moves.

Tests

app_location tests run against a real disk image made and mounted read-only with hdiutil, as Finder mounts a downloaded one:

  • The regression test: making the updater's temporary folder next to the app on the image fails with EROFS (the reported error). The app is found on a disk image, moved into an Applications folder, its quarantine is gone, and a folder can be made next to it. Red: with the detection turned off, it fails (left: Fine, right: DiskImage { … }). Green: it passes with the fix.
  • A move replaces an app already in Applications and puts the old one in the Trash. A copy that fails leaves the old app untouched.
  • A translocated app is moved from where it really is, and a quarantined app already in Applications only has its quarantine lifted.
  • The moved app opens only after this copy has quit, and the disk image is ejected.
  • The prompt copy.

cargo test --locked --lib --bins, cargo fmt --check, clippy.

On a real Mac

This PR's macOS DMG (1.2.12-internal.2055.g8b4dec149e3e), on an EC2 Mac (macOS 26.7.2) with OpenBot 1.0.3 already in Applications, opened from the mounted disk image as in the report:

  1. At launch, before any window: "Move OpenBot to Applications?" with the OpenBot icon, Move to Applications and Not now. Not now opened the setup window from the disk image.
  2. Update and restart in the setup window's offer (a test feed naming 9.9.9): "OpenBot 9.9.9 is available. OpenBot is open from its disk image, so it can't update itself. Move it to Applications, then update from there."
  3. Move to Applications: the copy on the disk image quit after about 4 s. OpenBot reopened from /Applications/OpenBot.app (this PR's build, signature intact, no quarantine). The disk image was ejected, and 1.0.3 went to the Trash.
  4. From Applications, Update and restart went straight to the updater with no move prompt, and a folder could be made next to the app. An internal build has no updater, so it then said "This build of OpenBot can't update itself", as every internal build does.

Changelog

OpenBot Desktop.

  • Fixed: updating OpenBot opened from its disk image. On a Mac, OpenBot opened from its disk image offers to move itself to Applications, at launch and when you update, so the update installs instead of failing with "Read-only file system".

…isk image

OpenBot opened from its mounted disk image, or from a copy Gatekeeper
translocated, could never update: the updater swaps the app in place and
makes its temporary folder next to it, and both places are read-only, so
the install failed with "Read-only file system (os error 30)" after the
whole update had downloaded.

As Electron's moveToApplicationsFolder and Sparkle apps with LetsMove do,
OpenBot now asks "Move OpenBot to Applications?" at launch, before any
window opens, and again at Update and restart and Check for Updates.
Move copies it into Applications with ditto, lifts its quarantine, puts
an older copy in the Trash, quits, opens the moved app and ejects the
disk image.
@davidmckayv
davidmckayv added this pull request to the merge queue Dec 4, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Dec 4, 2026
@davidmckayv
davidmckayv added this pull request to the merge queue Dec 4, 2026
Merged via the queue into main with commit a84f3d0 Dec 4, 2026
69 of 73 checks passed
@davidmckayv
davidmckayv deleted the desktop-move-to-applications branch December 4, 2026 15:54
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