<div dir="ltr">Thanks a lot, Jonni!<div><br></div><div>Discussion went further already, but I am just fascinated you guys have got such a plugin ready! I used to implement GConf modification on my own or create a Settings wrapper for the LocalStorage and now there's a ready made plugin for GConf - great!</div>
<div><br></div><div>Best regards,</div><div>Artem.</div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Nov 15, 2013 at 7:44 AM, Jonni Rainisto <span dir="ltr"><<a href="mailto:jonni.rainisto@jolla.com" target="_blank">jonni.rainisto@jolla.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
Normal usage of QSettings which saves under /home/nemo/.config/app would be just fine for C++.<br>
If you just want to save few config values in QML, then you might want to use GConf by importing nemo-qml-plugin-configuration module (<a href="https://github.com/nemomobile/nemo-qml-plugin-configuration" target="_blank">https://github.com/nemomobile/nemo-qml-plugin-configuration</a>) and use config key like com/yourdomain/applicationname etc.<br>
<br>
For example:<br>
--<br>
import org.nemomobile.configuration 1.0<br>
<br>
Page {<br>
ConfigurationValue {<br>
id: your_foo_setting<br>
key: "/com/super/superapplication/light_value"<br>
defaultValue: "-1"<br>
}<br>
--<br>
re, Jonni<br>
________________________________________<br>
From: <a href="mailto:devel-bounces@lists.sailfishos.org">devel-bounces@lists.sailfishos.org</a> [<a href="mailto:devel-bounces@lists.sailfishos.org">devel-bounces@lists.sailfishos.org</a>] on behalf of Thomas Tanghus [<a href="mailto:thomas@tanghus.net">thomas@tanghus.net</a>]<br>
Sent: Friday, November 15, 2013 3:13 AM<br>
To: Sailfish OS Developers<br>
Subject: [SailfishDevel] Saving state/config<br>
<div class="HOEnZb"><div class="h5"><br>
I couldn't find any standard way of saving an apps config. Is there such a<br>
standard, or is it up to the developer to choose format and location?<br>
<br>
I'm making a *very* simple app, so only using QML/JS, and only have to save<br>
3-4 values.<br>
<br>
As far as I could see the location should be /home/nemo/.config/appname[.ext]<br>
which could probably be accomplished better using<br>
QStandardPaths::writableLocation(QStandardPaths::ConfigLocation) but is that<br>
possible in QML?<br>
And which format should it be in?<br>
<br>
--<br>
Med venlig hilsen / Best Regards<br>
<br>
Thomas Tanghus<br>
_______________________________________________<br>
SailfishOS.org Devel mailing list<br>
_______________________________________________<br>
SailfishOS.org Devel mailing list<br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Artem Marchenko<br><a href="http://agilesoftwaredevelopment.com" target="_blank">http://agilesoftwaredevelopment.com</a><br><a href="http://twitter.com/AgileArtem" target="_blank">http://twitter.com/AgileArtem</a>
</div>