Accented characters don't work on Wine (Linux)

Hello,

I’m pretty late at this but I managed to solve this problem. I’ve got a french keyboard, and my accents were messed up, just like the original poster said.
So, here’s what I did to solve the problem step by step, which is indeed tied to Ibus.

  1. Install the ibus package on your distro, either using terminal or through the software center.

  2. Open a terminal and type ibus-setup and run it.

  3. Navigate to your home folder, push ctrl + h to show the hidden folders, and open the file named .bashrc with a text editor.

  4. At the end of .bashrc, add these lines :

export GTK_IM_MODULE=ibus export XMODIFIERS=@im=ibus export QT_IM_MODULE=ibus ibus-daemon -drx

  1. Open (or create) a file named .xprofile in your home folder. Add the same lines as step 4 at the end of it. This makes Wine use ibus as well.

5bis) Optional : some distros need the same lines at the end of .xinitrc , which is also in your home folder, so this might help you.

  1. Find where your autostart apps are (related to distro / desktop environment), and add this command to it :
ibus-daemon --xim
  1. Relog / reboot, and enjoy, Wine now uses iBus and you can have your accents as you wish.

This worked for me in both my laptop and desktop. The only issue I ran into is that sometimes, ibus wouldn’t boot with my computer. This is easily solved by launching a terminal and typing in

ibus-daemon --xim

Hope this helps someone !

Sources, in case you need something else :
wiki.archlinux.org/index.php/IBus#Initial_setup
wiki.archlinux.org/index.php/IBus#WINE

1 Like