Zren / plasma-applet-commandoutput

https://store.kde.org/p/1166510/
GNU General Public License v2.0
87 stars 18 forks source link

Where are the plasmoid configurations stored? #20

Closed UtkarshVerma closed 4 years ago

UtkarshVerma commented 4 years ago

How can I back up the configurations for this plasmoid? I'm planning to put the related files under version control to passively track changes to the widget.

Zren commented 4 years ago

Your entire desktop layout is serialized to ~/.config/plasma-org.kde.plasma.desktop-appletsrc

If you use eventcalendar, I wouldn't recommend making it public though as I put your login access token in that config.

Edit: Also these are all the config keys: https://github.com/Zren/plasma-applet-commandoutput/blob/master/package/contents/config/main.xml

Zren commented 4 years ago

You could use a script to read/write certain keys to another file.

value=`kreadconfig5 --file=$HOME/.config/plasma-org.kde.plasma.desktop-appletsrc --group=Containments --group=35 --group=Applets --group=60 --group=Configuration --group=General --key=command`
kwriteconfig5 --file=backup.ini --group=commandoutput --group=General --key=command "${value}"
UtkarshVerma commented 4 years ago

I guess I'll track the appletsrc for now since it doesnt contain any sensitive data. Thanks for the quick reply.