@Tigran: It struck me that /etc/profile.d/input-method-config.sh is an ancient file. Yes, it was introduced in 2017 due to this bug as a fix or workaround, but it was dropped long ago. If you are on an Ubuntu version > 20.04, you can safely just remove it.
So how could that happen? My guess is that you at some point of time took a shortcut when upgrading your Ubuntu version. You seem to have switched from some version before 20.04 directly to some version after 20.04. Skipping an LTS like that is not a supported upgrade path, and may result in issues like this one.
@Tigran: It struck me that /etc/profile. d/input- method- config. sh is an ancient file. Yes, it was introduced in 2017 due to this bug as a fix or workaround, but it was dropped long ago. If you are on an Ubuntu version > 20.04, you can safely just remove it.
So how could that happen? My guess is that you at some point of time took a shortcut when upgrading your Ubuntu version. You seem to have switched from some version before 20.04 directly to some version after 20.04. Skipping an LTS like that is not a supported upgrade path, and may result in issues like this one.
So I don't think there is much to report. ;)