Bug 417161 - compose keys do not work under wayland QT
Summary: compose keys do not work under wayland QT
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: generic-wayland (other bugs)
Version First Reported In: 5.17.5
Platform: Other Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords: wayland-only
Depends on:
Blocks:
 
Reported: 2020-02-04 19:32 UTC by Johann Höchtl
Modified: 2025-11-29 14:57 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Johann Höchtl 2020-02-04 19:32:42 UTC
SUMMARY
compose keys do not work

STEPS TO REPRODUCE
1. German keyboard, open any QT application enter ´e

OBSERVED RESULT
1. only e is displayed


EXPECTED RESULT
é is printed

SOFTWARE/OS VERSIONS
Linux/KDE Plasma:
(available in About System)
KDE Plasma Version: 5.17.5
KDE Frameworks Version: 5.66.0
Qt Version: 5.14.0

ADDITIONAL INFORMATION
Does work in GTK-applications, eg. firefox

Does work if the following is entererd into /etc/environment
INPUT_METHOD=ibus
GTK_IM_MODULE=ibus
QT_IM_MODULE=ibus
XMODIFIERS=@im=ibus

(none of the lines above are required for Wayland GTK-Apps to work)
Comment 1 Benjamin Port 2020-05-11 09:14:14 UTC
Bug is not reproducible with
KDE plasma and framework from master
Qt: 5.14.2
Comment 2 Thaddee Tyl 2025-11-29 14:57:46 UTC
I had this exact issue, and I think I know why it was not reproducible, which is why I write this in case someone else comes over this issue as well.

Back in the X11 days, I relied on /usr/share/X11/locale/en_US.UTF-8/Compose for compose key combinations.

At some point, a KDE upgrade migrated me to Wayland, and the compose key combinations that I was used to, ceased to work.

The reason? Wayland KDE reads $HOME/.XCompose, not /usr/share/X11/locale/en_US.UTF-8/Compose, which contains way more key combinations.

The workaround?
cat /usr/share/X11/locale/en_US.UTF-8/Compose >>~/.XCompose

That said, my personal preference is to convert the greek combos to explicit compose key combinations (eg. Compose+g+a for α):
</usr/share/X11/locale/en_US.UTF-8/Compose sed 's/^<dead_greek>/<Multi_key> <g>/' | grep '^<Multi_key>' >~/.XCompose