The fix for
TRUNK-3934 checks whether the folder ~/.OpenMRS is writable (https://github.com/openmrs-codejam-hamburg/openmrs-core/commit/2f55c3ee7717dab99b9b21db2a68cb85e583abc9).
However, if this is the first installation, the folder hasn't existed yet, so the check always return false and falls back to /var/lib, which the running process usually doesn't have permission. It is confusing and it leads to this question: https://answers.openmrs.org/questions/1860/openmrs-manual-install-on-mac-log-in-as-root.
The solution is to check whether the folder ~/.OpenMRS has existed or not first. If not, attempt to create it, so we can avoid unnecessary fallback.
I volunteer to work on this issue.