Better for macOS fails to fetch content updates when one stores their git config in XDG_CONFIG_HOME
Reported via email
Better for macOS fails to fetch content updates when one stores their git config in XDG_CONFIG_HOME, i.e.
$HOME/.config/git/config
.Better notifies me that it can’t open the repository in its “Group Containers” folder, and in Console I see the following message:
07.04.17 19:51:13,471 sandboxd[139]: ([850]) Better(850) deny file-read-data /Users/mkhl/.config/git/config
As Git will try reading both files (if they exist, see 1), I have to remove that file in order to get Better content updates to work. Even then Console still logs failures to read other files from that folder (I also keep my global ignores and attributes there), e.g.:
07.04.17 19:54:28,000 kernel[0]: Sandbox: Better(850) deny(1) file-read-data /Users/mkhl/.config/git/attributes
Better tells me that the update has succeeded though.
I’m guessing you need specific entitlements to read those files, so one for $HOME/.config/git seems in order. Note though that users may override XDG_CONFIG_HOME, and that git config files may read other arbitrary files2, so it might be something you might want in an FAQ of sorts.
I hope that helps you find and fix this problem, feel free to get in touch if there’s anything else I can provide.
P.S.
I still see a few more messages that sound concerning but are at least unrelated to this:
07.04.17 19:54:29,994 pkd[367]: enabling pid=855 for plug-in better.fyi.mac.blocker(2017.1) 7B6C714E-B469-4EC5-9EDB-D116F83CA65F /Applications/Better.app/Contents/PlugIns/Blocker-Mac.appex 07.04.17 19:54:33,925 syncdefaultsd[25781]: Can't register better.fyi.mac.blocker 07.04.17 19:54:33,935 Blocker-Mac[25779]: NSUbiquitousKeyValueStore error: better.fyi.mac.blocker does not have a valid com.apple.developer.ubiquity-kvstore-identifier entitlement