Sorry, I kept meaning to try this and never got round to it (because it was something that involved rebooting, and I never remembered about the issue until I was in the middle of doing stuff, at which point I didn't want to have to keep rebooting to see if I'd fixed it!)
I've finally found the correct fix, and it was quite simple:
Edit/create ~/.xim, not ~/.xim.template!
My ~/.xim file now contains:
Code:
export XMODIFIERS="@im=ibus"
export GTK_IM_MODULE=ibus
and is executable.
For reference, I worked out what it was after grepping /etc for "QT_IM_MODULE" and finding /etc/X11/xim.d/ibus and wondering whether I could set my own xim settings, then I realised I had a template but not an actual file!
Bookmarks