On 28/03/2021 06:47, Roger Heflin wrote:
I would check in the files in /etc/profile.d that is where most applications put their default settings.
grep has a recursive option, but be careful with it as it will follow symbolic links and if done anyplace with recursive symbolic links (/proc, /sys, and probably others) it will get into a loop will search forever.
When it comes to setting the input method it isn't as straight forward as setting an environment variable.
Running im-chooser will change the symbolic link ~/.config/imsettings/xinputrc to point to the chosen input method defined in /etc/X11/xinit/xinput.d. This does result in the environment variable being set but does result in more being done at login.
Just changing the environment variable in a shell won't undo/redo what needs to be done to change the input method of a user's login session.