Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
macOS preferences not checking the by-host level(part 2) #3942
Take this domain/key as an example:
I can observe this change with CFPreferences by using
or the handy script form the original issue
Now If I run
but running as root shows the incorrect value.
@groob, sorry for letting this slide for a while.
I think the lines you've referenced are OK. It should only select current user if a username is not provided to the method. In your use case you are sending 'victor'.
When you run your handy script, are you getting the same results as your user and as root?