andreasgrill / auto-selfcontrol

Small utility to schedule start and stop times of SelfControl
MIT License
305 stars 37 forks source link

Change or allow changing location of config file #58

Open jaworek opened 3 years ago

jaworek commented 3 years ago

Having config file in HOME directory would be useful for backup and sharing. Would it be possible to change it to follow XDG Base Directory Specification? Is there a reason for config file to be in the current directory?

I'm more than happy to create PR for that, although it seems that it will be required to create a migration script for current users.

https://wiki.archlinux.org/index.php/XDG_Base_Directory

sbibauw commented 3 years ago

I agree with @jaworek. Plus the current workflow does not work on new M1 Macs (where Homebrew installs at /opt/homebrew/.

I created PR #62 to solve this. It doesn't do the migration, but it will not break for previous config locations.