IBus and Wayland: what's the correct way to make this work?

Background: I use KDE Plasma on openSUSE Tumbleweed. A couple of months ago, I switched from X to Wayland. This was largely smooth, except (a) the mouse moved faster (easily changed in settings), (b) my IBus custom compose key combinations stopped working. This lead to this forum post, which lead to these instructions, which I followed, and everything worked, with my /etc/environment set to

INPUT_METHOD=ibus
GTK_IM_MODULE=ibus
QT_IM_MODULE=ibus
XMODIFIERS=@im=ibus

However, today after rebooting after updates, I got a nofication saying:

IBus should be called from the desktop session in Wayland. For KDE, you can launch ‘systemsettings5’ utility and go to “Input Devices” → “Virtual Keyboard” section and select “IBus Wayland” icon and click “Apply” button to configure IBus in Wayland. For other desktop sessions, you can copy the ‘Exec=’ line in org.freedesktop.IBus.Panel.Wayland.Gtk3.desktop file to a configuration file of the session. Please refer each document about the “Wayland input method” configuration. Before you configure the “Wayland input method”, you should make sure that QT_IM_MODULE and GTK_IM_MODULE environment variables are unset in the desktop session.

So, I dutifully commented out QT_IM_MODULE and GTK_IM_MODULE in /etc/environment, and changed the Virtual Keyboard setting suggested. But after reboot, the compose key was no longer working at all!

So, my question is: what is the correct/official way to use a compose key with custom key combinations in Wayland on openSUSE? This article appears to be out of date, as it recommends setting the environment variables, which after updates released today results in a notification telling you that’s not the way to do it any more.

It may be better to post this at KDE Discuss.

Just in case this topic is of interest to you