Skip to content

Added functionality for using multiple key and value flags.

Danila Skachedubov requested to merge skachedubovda/kconfig:kwriteconfig into master

Hello, I encountered a problem when using the kwritecofig5 command. To work with group policies that regulate KDE settings, I use this command to edit configuration files. Many settings have this format: example:

[Daemon]
Autolock=true
LockOnResume=true
Timeout=5

To set this up, you have to run the command several times in a loop, which does not have a good effect on performance, since there can be many settings. I added some functionality to the program that allows you to add several keys and values ​​to a section with one command (for example: kwriteconfig5 --file kscreenlocker --group Daemon --key Autolock --key LockOnResume --key Timeout --type string true true 5), I think this functionality will be useful.

Merge request reports