“trying to make changes directly in a preferences file is often doomed to failure, as any changes you make are likely to be overwritten by cfprefsd”

Link. Even when app isn’t running?