| Summary: | Effects Settings from XDG_CONFIG_DIRS are discarded when user clicks on [Defaults] | ||
|---|---|---|---|
| Product: | [Applications] systemsettings | Reporter: | Michael Mikowski <z_mikowski> |
| Component: | kcm_kwineffects | Assignee: | KWin default assignee <kwin-bugs-null> |
| Status: | CONFIRMED --- | ||
| Severity: | normal | CC: | eeickmeyer, krinpaus, nate, plasma-bugs-null, rikmills |
| Priority: | NOR | ||
| Version First Reported In: | 5.24.5 | ||
| Target Milestone: | --- | ||
| Platform: | Kubuntu | ||
| OS: | Linux | ||
| See Also: | https://bugs.kde.org/show_bug.cgi?id=456958 | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Michael Mikowski
2022-05-13 17:21:02 UTC
> /usr/share/kubuntu-default-settings/kf5-settings This is not something KDE supports and appears to be a Kubuntu-specific thing. The correct way to set systemwide defaults is to add them to the relevant config file in /etc/xdg. So in this case, you would want to create a file called /etc/xdg/kwinrc with the following content: > [Plugins] > wobblywindowsEnabled=true On the contrary, Nate, this is something that should be inherited by $XDG_CONFIG_DIRS in which case /usr/share/kubuntu-default-settings/kf5-settings is added to the path by the distribution. Therefore, by adding a file with a config to the aforementioned directory is inherently doing the same as adding it to /etc/xdg since it is in the same $XDG_CONFIG_DIRS path, at least according to the XDG spec. This is, of course, unless KDE is deviating from the Open Desktop Guidelines and not using the $XDG_CONFIG_DIRS system variable when searching for config files. If your packaging adds /usr/share/kubuntu-default-settings to $XDG_CONFIG_DIRS, it's still not going to work unless there's a file called "kwinrc" in there. The cascading feature in kconfig relies on the filename being identical to what's being requested in the code (which is "kwinrc"). So you will need to create /usr/share/kubuntu-default-settings/kwinrc which contains: [Plugins] wobblywindowsEnabled=true Does that work? That's exactly what Michael was referring to is that even when a file named "kwinrc" is in that path with those contents, it has no effect when "Defaults" is selected. The initial configuration is honored, but when "Defaults" is selected, it no longer gathers the defaults from the $XDG_CONFIG_DIRS path. Does the Defaults button work if you copy or move the file to live inside /etc/xdg? No, my testing involved using /etc/xdg directly. It's simply not inheriting $XDG_CONFIG_DIRS paths. (In reply to Erich Eickmeyer from comment #6) > No, my testing involved using /etc/xdg directly. It's simply not inheriting > $XDG_CONFIG_DIRS paths. Rather, my testing involved both directories. Can confirm with git master. As far as I can tell, the default set of enabled effects is determined by the effects' .desktop files, where they can have X-KDE-PluginInfo-EnabledByDefault= set to true or false. Some of these are generated at runtime by JSON files. |