How I have the problem, that the desktop effects for “Transluency” and “Wobbly Windows” don’t stay disabled, when I turn them off. They turn on again automtically when logging in.
Is this a bug or did I miss any other setting to keep these off?
Just to be sure, you do know you have to hit the Apply button in the lower right corner after making changes?
In case you do use the Apply button, do changes at other effects stick, or do they also disappear again?
Yes, I am aware that I have to press “Apply”. And the effects then stay off - but only for the current session. As soon as I log out and log in again, the effects get enabled again.
So, it works now after a couple times trying. Strange, it should work the first time.
But how about my question: do changes at other effects stick, or do they also disappear again?
Well to troubleshoot, you can look at the kwinrc file, when you turn on/off translucency, you should see it change:
translucencyEnabled=true
It would also be helpful to mention what distribution you’re using… but that looks like a very big update, as if you’ve been missing quite a few in between… is that an LTS distribution?
I tried to enable another effect to see if it stays enabled - this time “Fall Apart” for closed windows. And “Transluency” and “Wobbly Windows” where OFF when I did this and pressed “Apply”.
The current session was fine. But as soon as I logged out and logged in again, “Fall Apart” was still enabled - but same issue as before: “Transluency” and “Wobbly Windows” are also enabled again. And no, I really did not enable that manually.
I also disabled wobbly windows, and then relogged, and wobbly stayed off. Here’s the .config/kwinrc pertinent line. No other effects were changed.
[Plugins]
wobblywindowsEnabled[$d]
Edit: Have you tried to move aside .config and start fresh? It might help identify what type of interaction is occurring here. Kubuntu 26.04 release notes recommends this. If you try this, you can use something like meld or kdiff3 to merge back your tweaks.
Well, the whole ~/.config folder contains a lot of stuff, not only KDE related configurations. But I renamed ~/.config/kwinrc to ~/.config/kwinrc.old - and it did not change anything.
This file was created when I renamed the old one and logged out and back in:
And as before: after I went through this procedure 3 times, the settings stay now. But I expect them to revert to the default sooner or later. Very strange.
Well, the whole ~/.config folder contains a lot of stuff, not only KDE related configurations. But I renamed ~/.config/kwinrc...
Well yes, but that’s why I recommended merging your configs back.
Before proceeding, my guess is if you have a directory called ~/.config/kdedefaults and that env|grep kf[56]-settings show that it is the first in the XDG_CONFIG_DIRS path list. What happens if you log out, set that directory aside, and the sign back in? If that fixes it, you might have a culprit.
This procedure might better identify what is going on:
Create a brand-new user
Copy all configs to a backup directory, e.g. cp -a ~/.config ~/.config.1
Apply the change. Backup again, cp -a ~/.config ~/.config.2
Relog and backup again, cp -a ~/.config ~/.config.3
See if parameter sticks. If so, try to recreate what triggers the bad behavior.
Use meld or kdiff3 to compare directories (.config, .config.1, .config.2, etc) and identify where things broke. Keep an eye on .config/kdedefaults, as something might be going on in there.
Also, report the output of this: env |grep kf[56]-settings
The better one can isolate and report when the breakage occurs, and what data changed when it did, the faster and more likely it will get fixed.
A short-term hack that might work is to edit files like /usr/share/kubuntu-default-settings/kf5-settings/kwinrc. Any changes be overwritten during updates.
It also happens with a new user. Exactly the same behaviour - these two lines in ~/.config/kwinrc disappear after the second or third login with the new user account:
Unfortunately, the problem is not easy to reproduce. I can log in multiple times without any issue at all - and at some point the settings get reverted.
However what always “work” is to enable the “Fall Apart” effect without enabling “Transluency” and “Wobbly Windows” followed by a logout and login again. Then the “Transluency” and “Wobbly Windows” will always get enabled.
I verified the files when “Fall Apart” was enabled but “Transluency” and “Wobbly Windows” were disabled. However more than 20 files differ between these two states, it’s a bit hard to isolate what exactly happens.
I verified the files when “Fall Apart” was enabled but “Translucency” and “Wobbly Windows” were disabled. However more than 20 files differ between these two states, it’s a bit hard to isolate what exactly happens.
Thanks to your research, I think you can confidently state that this problem results from the writing of kwinrc on or before logout, and when that occurs, these local settings are omitted. Then on relog, your configs are not restored because they are simply gone. Values found later in the XDG_CONFIG_DIRS list are inherited instead as illustrated below:
#> /home/dev/.config # This is where your kwinrc setting used to be
sed 's/:/\n/g' <<< "${XDG_CONFIG_DIRS}";
# This is where local default are saved by kde
#> /home/dev/.config/kdedefaults
# Some system configs further up the list
#> /etc/xdg
# Kubuntu defaults; kwinrc is here among others
#> /usr/share/kubuntu-default-settings/kf5-settings
A summary of this would probably be good to add to the KDE bug ticket.