Thread
:
Help me to code for Sailfish OS
View Single Post
aerique
2020-12-05 , 16:10
Posts: 1 | Thanked: 1 time | Joined on Dec 2020
#
153
What's the proper way to store an apps settings?
For my current (and first) app I'm for now just grabbing the `$HOME` environment variable and stuff a file in `$HOME/.config/app/settings`, but this is just for local dev and testing.
Once I'm distributing it through OpenRepos I'd like to do it the proper way (if there is one).
edit: Thanks for the hint, coderus. I've gone with:
Code:
QStandardPaths::writableLocation(QStandardPaths::AppConfigLocation)
Last edited by aerique; 2020-12-05 at
20:56
.
Quote & Reply
|
The Following User Says Thank You to aerique For This Useful Post:
juiceme
aerique
View Public Profile
Send a private message to aerique
Find all posts by aerique