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.
-
Install the ibus package on your distro, either using terminal or through the software center.
-
Open a terminal and type
ibus-setupand run it. -
Navigate to your home folder, push ctrl + h to show the hidden folders, and open the file named .bashrc with a text editor.
-
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
- 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.
- Find where your autostart apps are (related to distro / desktop environment), and add this command to it :
ibus-daemon --xim
- 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