Closed sbibauw closed 3 years ago
Thanks for the PR! I agree that storing the configuration in the user home dir is better for backups and migrations. I think we need to specify the settings dir when auto-selfcontrol is started via launchd as a launch daemon. I've tried this locally and will fix this with an additional commit after merging your PR.
The config file will be looked for in
~/.config/auto-selfcontrol/config.json
/usr/local/etc/auto-selfcontrol/config.json
$DIR/config.json
(same directory as where Auto-SelfControl has been installed) If not found, created in~/.config/auto-selfcontrol/config.json
This will make it easier to backup and sync it across installs. Answers #58
It also works on new ARM-based M1 Macs where brewed bins are in
/opt/homebrew/
, no longer in/usr/local/
.This will not move an existing config file. Moving can be done manually:
auto-selfcontrol
will find this new location first.