How can I change StandaloneApp's .settings directory?

Here is a post with a workable solution, but I agree with the author @richie, that there should be a better solution: