In any case using /etc/environment on Ubuntu for this purpose won't happen. But maybe your finding can be helpful in figuring out a proper fix.
Can you please clean up your /etc/environment from IM related variables, reboot, and run this command: env | grep -E 'XMOD|_IM' Probably it outputs: XMODIFIERS=@im=ibus QT_IM_MODULE=ibus Then, as a test, please add only this line to /etc/environment: GTK_IM_MODULE=ibus and reboot. Is that sufficient to make the candidate window be shown correctly on e.g. Microsoft Edge? -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to ibus in Ubuntu. https://bugs.launchpad.net/bugs/1966552 Title: IBus input method candidate box cannot follow the cursor Status in ibus package in Ubuntu: New Status in ibus-libpinyin package in Ubuntu: New Bug description: I have tested it in some software, such as Microsoft Edge, Onlyoffice, and it does not follow the cursor position correctly, but always at the bottom left of the application window. However, in some applications such as Gedit, it works fine. Pictures are hereļ¼https://i.bmp.ovh/imgs/2022/03/34ebb5158ceeedfc.png OS: Ubuntu Jammy Jellyfish Kernel: 5.15.0-23-generic on Wayland ProblemType: Bug DistroRelease: Ubuntu 22.04 Package: ibus-libpinyin 1.12.1-2ubuntu2 ProcVersionSignature: Ubuntu 5.15.0-23.23-generic 5.15.27 Uname: Linux 5.15.0-23-generic x86_64 ApportVersion: 2.20.11-0ubuntu79 Architecture: amd64 CasperMD5CheckResult: unknown CurrentDesktop: ubuntu:GNOME Date: Sat Mar 26 23:59:28 2022 InstallationDate: Installed on 2022-02-09 (45 days ago) InstallationMedia: Ubuntu 20.04.3 LTS "Focal Fossa" - Release amd64 (20210819) SourcePackage: ibus-libpinyin UpgradeStatus: No upgrade log present (probably fresh install) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ibus/+bug/1966552/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp