Let's say that i would like to make sure that some property actually still exist in given program and can be used by it (aka is not deprecated aka not just empty entry in config file), since kreadconfig5 / kwriteconfig5 are just write / read configs as far as i know, it's not enough to just kreadconfig5 or something
There are 2 cases i would like to cover:
- When you already know program which should have this configuration (for example dolphin):
kreadconfig5 --file "dolphinrc" --group "General" --key "ShowFullPath"
- When you don't have a clue and pass some random program's config inside loop (but you know that they're all part of KDE / plasma), like those for example:
kreadconfig5 --file "klaunchrc" --group "BusyCursorSettings" --key "Bouncing" kreadconfig5 --file "baloofilerc" --group "General" --key "only basic indexing" kreadconfig5 --file "kactivitymanagerd-pluginsrc" --group "Plugin-org.kde.ActivityManager.Resources.Scoring" --key "blocked-by-default"
I see this process as something like:
Define program by config file (ideally for case 2)
Somehow dump/compare all available config options from this program (if it exists)
Check if there's a match with given group + key there
But i have no clue if this is possible / how to go with it
Or maybe there's something native for this, like with their Python api