mirror of
https://github.com/SabreTools/MPF.git
synced 2026-02-07 21:30:16 +00:00
[Problem] When ran in a directory without write access, MPF.Check will not create a config in the known-good location #887
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @InternalLoss on GitHub (Jan 16, 2026).
Originally assigned to: @mnadareski on GitHub.
Before You Submit
If all of those fail, then continue...
Version
What version are you using?
Build
What runtime version are you using?
Describe the issue
When MPF.Check is placed in a read-only directory (such as
/usr/local/bin), it does not create a config.json at~/.config/mpf/config.jsonas expected.Furthermore, if a config.json is manually generated and placed either in the same directory as the executable or in the shared configuration directory with just a RedumpUsername/RedumpPassword, the Redump credentials are not used.
To Reproduce
MPF.Checkbinary in/usr/local/binor similar on-PATH but not writable directory.MPF.Check(I specifically ranMPF.Check xbone xxx.logOptions will be loaded from found configuration file!is shown.Expected behavior
Additional context
I also noticed that the config.json made when MPF.Check is running in a directory that's writeable (such as ~/Downloads/) is blank.
@mnadareski commented on GitHub (Jan 16, 2026):
For the part of the issue regarding partial configs is very much expected. The configuration files are not expected to be partial as they are generated by both MPF.UI and MPF.CLI. One of the configuration items,
FirstRun, is used as an indicator for a lot of stuff to ensure new users have a different experience. I do not currently consider adding support for partial configs as something I would like to support.The remainder of the issue is valid and will be investigated when there is time.
@mnadareski commented on GitHub (Jan 16, 2026):
According to a StackOverflow post, the location for configuration files should be in
~/Library/Application Support/<appname>/<appname>.cfg. This is a significant departure from the current OS-agnostic setup and may mean that Windows changes to%APPDATA%in the process as well. I was hoping to avoid this, to be entirely honest.Addendum: This enforcement of directory rules may also explain the blank configuration file being generated. I have no idea how, but this may mean that macOS will always require a centralized configuration file.