Where to place my custom app's configuration files?
I'm writing my custom app which has a settings tab. Now, I wish to save these settings persistent even if the app is closed. How should I do that?
My first Idea is to create a config file, like that in $HOME/.myapp/myapp.conf
# my settings
key = value
Is that the correct location? Is that the correct way to save settings persistent?
Is there anything else I should take care of? Are there any code examples/best practice hints?