Files, config, and welcome (again)

Djuro Drljaca djurodrljaca at gmail.com
Sun Apr 15 08:14:13 UTC 2012


Hello,


as far as I know it is very important to know where you tested it. If you
only tested it in the plasmoidveiwer then this is probably the reason it
doesn't work. Install the plasmoid on the system and try it there ... then
I think it probably will work.


Regards,

Djuro Drljaca

On Sun, Apr 15, 2012 at 2:03 AM, Michał 'rysiek' Woźniak <rysiek at fwioo.pl>wrote:

> Hello,
>
> I have already written to this list and some of you might know me from
> other channels (like IRC or StatusNet). Either way - hi and hello!
>
> Also, I hope I am writing in the right place. If not, do tell and
> point me in the right direction.
>
> Now, to the point!
>
> I am writing a Todo/tasks plasmoid, inspired by TaskTimer. Here's my
> braindump about it:
> http://rys.io/en/71
>
> One thing I am missing at this moment, and am missing dearly, is a way
> to save the state of the tasks (text, elapsed time, etc) so that it
> gets restored upon plasmoid "restart" (not sure if this is the right
> word). This can be easily done with a simple JSON text file, or even
> an INI file for that matter.
>
> So basically what I need is either a config store or a way to
> read/write pure text files.
>
> I tried using the KConfig XT, but surprisingly the values did not get
> saved (yes, main.xml file is created and contains the right stuff);
> this happened even with the kdeexamples configuration example.
>
> Besides, I am wondering if the rigid structure of KConfig XT files is
> a good bet here; I am adding/removing todo items in the plasmoid, and
> as far as I understand config entries are defined beforehand - so I
> would have to store key-value pairs (in JSON?) within the config XML
> file. Doesn't seem "right".
>
> So, three questions:
>  - am I missing something about the KConfig XT approach?
>  - maybe there is a better config API for QML/JS plasmoids?
>  - is there a way to read/write files from a QML/JS plasmoid?
>
> I am running KDE SC 4.7.4 in Debian Sid.
>
> --
> Pozdrawiam
> Michał "rysiek" Woźniak
>
> Fundacja Wolnego i Otwartego Oprogramowania
>
> _______________________________________________
> Plasma-devel mailing list
> Plasma-devel at kde.org
> https://mail.kde.org/mailman/listinfo/plasma-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20120415/5442fb58/attachment-0001.html>


More information about the Plasma-devel mailing list