Hint: You can either make it use relative URLs or set the base URL when running hugo
via --baseUrl
. I had to deal with this before
It has a few convenience functions to move entries from one file to another like KConfig::copyTo()
, KConfigGroup::copyTo()
, KConfigGroup::KConfigGroup(KConfigBase, KConfigGroup)
and KConfigGroup::KConfigGroup(KConfigGroup)
, but thereās no migrate function or automatic behavior I think.
The KConfig::OpenFlag
enum lets you define some sort of hierarchy between config files (/etc/yourconfigrc
ā ~/.config/kdeglobals
ā ~/.config/yourconfigrc
), but thatās for defaults only. It doesnāt have to do with the preference for reading files from what I can tell.
And thereās KConfig::addConfigSources()
, but I donāt fully understand it yet.
In practice it should just need a simple if conditional though.
Perhaps not precisely about the original topic, but whatās up with plasma-org.kde.plasma.desktop-appletsrc
? IME very fragile, and accumulates junk. IMO no use having a clean directory if the dirt has been shovelled into files.
It describes the structure of your desktop, from containments (panels, your actual desktop) and the applets that are located within them, and the settings of all of those.
I donāt find it fragile, but I think it could do with a nicer name and being filed away more cleanly as described in the blog.
It describes the structure of your desktop, from containments (panels, your actual desktop) and the applets that are located within them, and the settings of all of those.
I have a fair idea as to some of what it does, not least from what has broken over the years.
Thereās too much in it; on one system I find 1500 lines. I really donāt like its complicated structure that acts to make it inaccessible; it looks like obfuscation. One is obviously not supposed to read it, let alone make changes. IMO config files should have comments explaining the meaning of the contents.
I donāt see that capability in the KConfig API. It would be nice to have.
One could argue that if you need comments, then the entry itself is non-descriptive and should be changed, but having comments would be a nice plus. Maybe a defaulted QString parameter that adds a comment line above the desired config entry.
Config files arenāt really meant to be modified manually. Default settings are omitted too.
Comments could be derived from KConfigXTās kcfg XML, with <label>
For the average, non-technical, user, perhaps.
[humour mode]But, Iām not that, and resent UX devs telling me how to use a desktop by making config changes inaccessible. Hey, if I was Joe average Iād use Gnome. Perhaps I need some drug to stop me thinking.