mirror of
https://github.com/SabreTools/MPF.git
synced 2026-02-03 21:29:27 +00:00
[Request] Look for config file in other set directories #761
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 @Whovian9369 on GitHub (Nov 29, 2024).
Originally assigned to: @mnadareski on GitHub.
Is your feature request related to a problem? Please describe.
Look for
config.jsonin directories other than the current working directory to make packaging for other environments more feasible.For example, NixOS (or other systems that just use Nix as a package manager) has the application and pre-requisite files in a read-only directory/mount point, so unsuccessfully writing to config files in read-only directories can cause runtime issues or frustrations with the config file not being writable or available in the first place. Having that file available for
MPF.Checkin other directories, such as$HOME/.config/mpf/config.json, would help remedy that issue.Describe the solution you'd like
config.jsonto be found in other directories, such as$HOME/.config/mpf/config.json, to make it easier for users where the main binary is in a read-only directory.Describe alternatives you've considered
Hardcoding a config file into the built system presents a security issue where having a saved login could be viewed by all users of the system.
Additional context
N/A