Repository navigation
Desktop offers to move itself to Applications when it runs from its disk image - #2937
Merged
Merged
Conversation
…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
requested review from
MikeRyanDev,
dustywusty,
guidovizoso,
mxmzb,
samjulien and
tylerslaton
as code owners
December 4, 2026 14:29
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Dec 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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….
dittointo/Applications, or~/Applicationswhen/Applicationsisn'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
app.isInApplicationsFolder()andapp.moveToApplicationsFolder(). Apps call these at launch and offer the move in a dialog. Squirrel.Mac refuses to update from a read-only volume. https://www.electronjs.org/docs/latest/api/app#appmovetoapplicationsfolderoptions-macosOpenBot 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_locationtests run against a real disk image made and mounted read-only withhdiutil, as Finder mounts a downloaded one: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.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:/Applications/OpenBot.app(this PR's build, signature intact, no quarantine). The disk image was ejected, and 1.0.3 went to the Trash.Changelog
OpenBot Desktop.