Skip to content

Plugins: an install refused for want of permission names the folder and what to do - #236

Merged
robotastic merged 2 commits into
TrunkRecorder:mainfrom
blantonl:plugin-folder-error
Nov 24, 2026
Merged

robotastic merged 2 commits into
TrunkRecorder:mainfrom
blantonl:plugin-folder-error

Conversation

@blantonl

@blantonl blantonl commented Nov 24, 2026 •

Copy link
Copy Markdown

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::stage can't create the install folder or its staging folder, for lack of permission or on a read-only filesystem, it says:

Can't install into /…/plugins: Permission denied (os error 13). Trunk Recorder Pro installs plugins and interfaces beside its config file, in /…, so the user it runs as has to be able to write there. Run it as the user who owns that folder, or give that user write access to it. For example, as an administrator: sudo chown -R /…

On Windows, the last sentence instead says to keep the config out of Program Files and start Pro with --config pointing at a folder of your own. Other errors read as before. Plugins and interfaces both go through stage, 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. The store:: 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.

  • One home: trunk_app::files. folder.rs's Problem (why, detail, fix) moved here along with the operations every write uses: make_dir, write, write_atomic (moved from config), write_private (0600), create, append, rename, copy, remove_file, remove_dir_all.
  • The explanation for permission denied names whose folder it is and who Pro runs as, and gives the chmod or chown to 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.
  • stage keeps 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 shared Problem, instead of its own cant_write. The test checks the same things, on the shared wording.
  • Moved onto it, beyond installs:
    • the config save and migration
    • the call store: its folder, lock, set-aside and backup
    • the log file
    • the session key and sign-in state
    • the recorder ID
    • registry and screenshot caches, and install provenance
    • plugin and interface uninstall
    • held calls and a plugin's data folder
    • IQ captures and .send.json
    • the RAM spool and move_file
    • the encoder's .part files and the Spotlight probe
  • Two failures that were silent are now said:
    • the log file, once on stderr
    • a plugin's data folder, as a warning
  • Left out on purpose: cleanup of temporary files that ignores errors, and the developer tools' own output paths.

Tests: trunk_app::files has its own tests: atomic and private writes, permission denied, a file in the way. cargo test --workspace passes. The wasm build compiles. captures/regress.sh is identical to main.

…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
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>
@robotastic
robotastic merged commit e072d58 into TrunkRecorder:main Nov 24, 2026
23 of 24 checks 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.

2 participants