Reply
Thread Tools
peterleinchen's Avatar
Posts: 4,117 | Thanked: 8,901 times | Joined on Aug 2010 @ Ruhrgebiet, Germany
#151
You mean like ?
Code:
dconf dump /
__________________
SIM-Switcher, automated SIM switching with a Double (Dual) SIM adapter
--
Thank you all for voting me into the Community Council 2014-2016!

Please consider your membership / supporting Maemo e.V. and help to spread this by following/copying this link to your TMO signature:
[MC eV] Maemo Community eV membership application, http://talk.maemo.org/showthread.php?t=94257

editsignature, http://talk.maemo.org/profile.php?do=editsignature
 

The Following 2 Users Say Thank You to peterleinchen For This Useful Post:
Markkyboy's Avatar
Posts: 433 | Thanked: 727 times | Joined on Oct 2012 @ Costa Blanca, España
#152
as per the response from peterleinchen, you can also output to file;

Code:
dconf dump / > dconf-output.txt
__________________
..oO(Don't just sit there standing around, pick up a shovel and sweep up!)Oo..
 

The Following 2 Users Say Thank You to Markkyboy For This Useful Post:
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.
 

The Following User Says Thank You to aerique For This Useful Post:
coderus's Avatar
Posts: 6,436 | Thanked: 12,699 times | Joined on Nov 2011 @ Ängelholm, Sweden
#154
Originally Posted by aerique View Post
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).
https://doc.qt.io/archives/qt-5.6/qstandardpaths.html

Code:
QStandardPaths::writableLocation(QStandardPaths::DataLocation)
If you use QSettings class it will automatically create file in correct location.
__________________
Telegram | Openrepos | GitHub | Revolut donations
 

The Following 4 Users Say Thank You to coderus For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 11:42.