Score:0

ibus-mozc not working on WSL2

br flag

I'm trying to get ibus-mozc to work under WSL2. So far I can switch to different inputs using the configured shortcut, but no candidate window is displayed as I type which prevents me from inputting any Japanese characters.

Steps I've tried:

  1. sudo apt -y install gedit ibus-mozc
  2. Put the following into my ~/.profile:
    export GTK_IM_MODULE=ibus
    export QT_IM_MODULE=ibus
    export XMODIFIERS=@im=ibus
    ibus-daemon -drxR
  1. Restart bash
  2. Open ibus-setup, configure the desired input shortcut and add Mozc to the list of inputs
  3. Open gedit
  4. Switch to Mozc using the configured shortcut and type some characters

Screenshot of the IBus input selection popup

What I suspect is that this is caused by mozc starting in direct input instead of kana input (Make IBus-Mozc start in Hiragana rather than Direct input mode). But because there is no taskbar in WSL, this makes it impossible to switch to kana input.

Another issue is that the Preferences button for the Mozc input within the IBus Preferences window does nothing for me.

Is there any possible solution for this issue?

NotTheDr01ds avatar
vn flag
It sounds like this utility is for X; is that correct? If so, you should probably add some information to your question on how you have that configured, since WSL doesn't (yet) support it without additional configuration. Have you installed a third-party X Server, or are you using WSLg from Windows Preview/Insider?
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.