I tested multiple IBus IMs, and AFAICT the issue is a pure ibus-mozc one. Consequently I now believe that a reasonable solution is to let the ibus-mozc package install an autostart file for launching Xwayland. That way users who don't use ibus-mozc won't be affected.
New proposal in this PPA: https://launchpad.net/~gunnarhj/+archive/ubuntu/mozc If you agree, I'm ready to upload. Let me know. Also, can someone please make the bug description 'SRU compatible': https://wiki.ubuntu.com/StableReleaseUpdates#SRU_Bug_Template ** Also affects: mozc (Ubuntu) Importance: Undecided Status: New ** No longer affects: gnome-shell (Ubuntu) ** No longer affects: im-config (Ubuntu) ** No longer affects: mutter (Ubuntu) ** Also affects: mozc (Ubuntu Impish) Importance: Undecided Status: New ** Changed in: mozc (Ubuntu) Status: New => In Progress ** Changed in: mozc (Ubuntu) Assignee: (unassigned) => Gunnar Hjalmarsson (gunnarhj) ** Changed in: mozc (Ubuntu Impish) Importance: Undecided => High ** Changed in: mozc (Ubuntu Impish) Status: New => In Progress ** Changed in: mozc (Ubuntu Impish) Assignee: (unassigned) => Gunnar Hjalmarsson (gunnarhj) -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to im-config in Ubuntu. https://bugs.launchpad.net/bugs/1946969 Title: ibus-x11 does not start automatically Status in mozc package in Ubuntu: In Progress Status in mozc source package in Impish: In Progress Bug description: ibus-x11 does not start automatically due to Xwayland on demand by default. IBus user does not input any cjkv languages before start to ibus-x11 or xwayland process. Steps to reproduce: 1. run Ubuntu 21.10 installer 2. select Japanese language 3. finish to install and reboot 4. login 5. reboot 6. login 7. push Windows key + Space key and select Japanese (Mozc) 8. run gedit 9. push Hankaku/Zenkaku key Expected results: show any Japanese characters Actual results: input any alphabetical key which I push observation: This may be mutter's matter. Xwayland on demand by default https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1673 workaround: 1. run gnome-terminal and run command "ibus-daemon -rxd" 2. run any xwayland application like Libreoffice 3. use X session 4. restart IBus automatically when log in exaple: $ sudo editor /etc/xdg/autostart/ibus-autostart.desktop [Desktop Entry] Name=ibus-autostart Exec=sh -c 'if [ "${IM_CONFIG_CHECK_ENV}" = "1" ] && [ "${XDG_SESSION_TYPE}" = "wayland" ] && [ "${XDG_CURRENT_DESKTOP}" = "ubuntu:GNOME" ] || [ "${XDG_CURRENT_DESKTOP}" = "GNOME" ]; then ibus-daemon -rxd true; fi' TryExec=ibus-daemon Type=Application To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/mozc/+bug/1946969/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : [email protected] Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp

