Well, that file just sets the user’s locale (e.g. language) to the corresponding Plasma settings.
If that is indeed the reason for the problem, the file’s content would be interesting to see.
Although, even then it’s still rather a bug in mc IMHO (maybe it only happens with certain languages or something like that).
# Generated script, do not edit
# Exports language-format specific env vars from startkde.
# This script has been generated from kcmshell5 formats.
# It will automatically be overwritten from there.
That’s the content of my file. That would also correspond to some other weird behaviour I see since yesterday. My keyboard layout switched to English and my desktop is partly English, too…
Well, I see nothing wrong with that file, it just sets those two environment variables LANG and LANGUAGE (that specify to applications which locale and language to use), and it probably had the same content before the latest updates… (as it is some user setting)
That should not affect the keyboard layout at all anyway.
So it seems to be somewhere deeper I suppose, maybe bash itself or some system startup script.
Or maybe it could be a bug in the new startplasma program that’s used instead of startkde now? :-/ (that would “run” ~/.config/plasma-locale-settings.sh on login AFAIK)
Hm, I actually can reproduce both problems on Leap 15.1 here now (the bash errors and kdesu not working) after logging into Plasma5.
So they seem to indeed be related to the new Plasma startup process in 5.17…
The localization and keyboard layout is still fine here though, even with your plasma-locale-settings.sh in place.
So those seem to be unrelated, and something specific to Tumbleweed, or your system.
Regarding the keyboard layout, did you try to set it in systemsettings5, or did you set it in YaST?
Until now, I only set it in YaST as system layout. No special settings for Plasma. Setting it in Plasma works fine, but shouldn’t be necessary
But yes, I agree that my localization problems might have another cause… But they may also be related to the latest snapshot, as I had also some problems with my network card and everything worked just fine before. I didn’t change anything but doing the zypper dup.
Indeed, but that might be caused by some other change in Tumbleweed.
I certainly can’t reproduce that one here on Leap, and Plasma doesn’t change the keyboard layout at all unless you explicitly set one in systemsettings5.
The layout is rather set by Xorg.
Maybe it would help if you change the layout in YaST and then change it back again?
Maybe the config file /etc/X11/xorg.conf.d/00-keyboard.conf got broken or deleted somehow.
Yes, because the problem was indeed that start-plasma-* corrupted the environment when “running” ~/.config/plasma-locale-settings.sh during login (it didn’t properly handle variables that contain newlines, like exported functions do).
PS: it looks like it does the same when running the scripts in ~/.config/plasma-desktop/env/, so if you have one in there deleting ~/.config/plasma-locale-settings.sh probably won’t help. (I haven’t verified that though)