This forum has been archived. All content is frozen. Please use KDE Discuss instead.

how to save plasmoid config data to config/main.xml ?

Tags: None
(comma "," separated)
dr_agon
Registered Member
Posts
3
Karma
0
Hello!
I am trying to improve ShortLog plasmoid (http://kde-look.org/content/show.php?content=123379&forumpage=0) and make it save the config into .kde/share/apps/plasma/plasmoids/shortlog/contents/config/main.xml . It seemed to be the default location for config, but for me it doesn't work. The plasmoid keeps saving the data to .kde/share/config/plasma-desktop-appletsrc. The config data are removed from this file if I remove the plasmoid from my desktop.
I want to preserve the config data for next activation of this plasmoid and for backup purposes. How can I save the data to a file other than plasma-desktop-appletsrc ? (using KConfigXT if possible)
Setting plasmoid.activeConfig doesn't work.
I tried to do this both with javascript and python, and configWrite always goes to plasma-desktop-appletsrc together with tons of other configs.
I use Qt: 4.8.1; KDE Development Platform: 4.8.3 (4.8.3) in Kubuntu 12.4.
Any hints will be appreciated.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
You will need to construct your own KConfig / KConfigGroup instances.
In your KConfigXT *.kcfg file, make sure you have a statement similar to:
Code: Select all
<kcfgfile name="systemsettingsrc"/>

Where name is the desired name of your configuration file.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot], ourcraft