Repository navigation
Plugins: an install refused for want of permission names the folder and what to do - #236
Merged
Merged
Conversation
…nd what to do
A plugin or interface install into a folder the user can't write to
said only the OS error ("<path>: Permission denied (os error 13)").
It now names the folder it installs into, says it's beside the config
file so the user Trunk Recorder Pro runs as must be able to write
there, and how to fix it: run as the folder's owner or give that user
write access (chown on Linux and macOS; on Windows, keep the config
out of Program Files).
blantonl
marked this pull request as ready for review
November 24, 2026 18:06
TrunkRecorder#236 explained an install refused for want of permission, in words of its own. The recordings folder already had those words (folder.rs's Problem). Now they're trunk_app::files, and everything that writes goes through it: make_dir, write, write_atomic (from config), write_private (the session key, sign-in state), create, append, rename, copy, remove_file, remove_dir_all, each failing with a Problem (why, detail, fix: whose folder and who the app runs as with the chmod or chown, macOS privacy, read-only, full, not a folder, gone; on Windows, Program Files). Moved onto it: the config and its migration, the call store (folder, lock, set aside, backup), the log file, sign-in, the recorder ID, the plugin and interface installs (TrunkRecorder#236's message keeps its "beside the config file" and takes the shared why), caches, held calls, a plugin's data folder, IQ captures and sending, the RAM spool, the encoder's files. The log file and a plugin's data folder failing were silent: now they're said. Left out on purpose: best-effort cleanup of temporary files, and the developer tools' output paths. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
A user on the RadioReference forum couldn't install plugins: it "wasn't authorized to write to the folder that they use". The install gave only the OS error,
<path>: Permission denied (os error 13)(Access is denied on Windows). It didn't say which folder Pro installs into, that the folder sits beside the config file, or what to do.Now, when
store::stagecan't create the install folder or its staging folder, for lack of permission or on a read-only filesystem, it says:On Windows, the last sentence instead says to keep the config out of Program Files and start Pro with
--configpointing at a folder of your own. Other errors read as before. Plugins and interfaces both go throughstage, so both get the new message.Tests:
an_unwritable_folder_is_named_with_what_to_do(Unix) covers a folder that can't be created and a folder that exists but can't be written. Thestore::tests pass. Docs (plugins/README.md, Where plugins live) and CHANGELOG are updated.Maintainer changes
The problem is real, and
folder.rs(#200) already explained the same failure for the recordings folder. Rather than a second explanation for installs, both now share one, and so does everything else that writes.trunk_app::files.folder.rs'sProblem(why, detail, fix) moved here along with the operations every write uses:make_dir,write,write_atomic(moved fromconfig),write_private(0600),create,append,rename,copy,remove_file,remove_dir_all.chmodorchownto run. macOS privacy, read-only and full disks, not a folder, and gone are told apart. This PR's Windows advice (keep the config out of Program Files) is now part of the shared explanation, for any folder under Program Files.stagekeeps this PR's context ("Can't install into …. Plugins and interfaces go beside the config file, so the user Trunk Recorder Pro runs as has to be able to write there.") and appends the sharedProblem, instead of its owncant_write. The test checks the same things, on the shared wording..send.jsonmove_file.partfiles and the Spotlight probeTests:
trunk_app::fileshas its own tests: atomic and private writes, permission denied, a file in the way.cargo test --workspacepasses. The wasm build compiles.captures/regress.shis identical to main.