![]() Registered Member ![]()
|
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. |
![]() Administrator ![]()
|
You will need to construct your own KConfig / KConfigGroup instances.
In your KConfigXT *.kcfg file, make sure you have a statement similar to:
Where name is the desired name of your configuration file.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot], ourcraft