US-International with dead keys keyboard layout on Fedora KDE 44

I’m running latest Fedora KDE on wayland, and I’d like to setup the keyboard layout to US International with dead keys. Usually on other systems (ie macos and windows), the equivalent layout produces ç when typing acute+c. On fedora it produces ć.

How can I manage to have it type acute+c=ç cedilla consistently across KDE/QT, GTK, Electron and Chromium-based apps?

I have tried a bunch of configurations, and I could successfully have QT and GTK apps to behave as I expect (ç). But Chromium browsers and Electron apps (such as vscode) still produces ć.

The layouts aren’t exactly equivalent - the Linux “US International with dead keys” layout makes some different choices from MacOS and Windows.

This Stack Exchange post has some suggested solutions. The OP there was a GNOME user, but the solutions using .XCompose should also work on KDE.

Specifically for ç, you could apparently get this using Alt,

Yep, this post is 16yo, so I guess the issue is those files (.XCompose) no longer applies on wayland ?

Yes I can get cedilla with Alt+, but I have to constantly shift my mind when swapping OSes.

I’m looking for a consistent way that works across all kinds of apps I listed. So far I can’t find a way for Electron and Chrome browsers

That should still work on Wayland. The machinery around keyboard layouts is essentially the same as on X11.

Currently I have a .XCompose file in my home dir, the one from GitHub - raelgc/win_us_intl: Windows™ US International XCompose for Linux · GitHub, and the env vars

GTK_IM_MODULE=cedilla
QT_IM_MODULE=cedilla

Still no luck with Electron/Chrome.

Hmm, sorry :frowning:

Did you install fcitx5 which the instructions say is needed for Fedora 43 KDE (and presumably for 44?)

You could try asking on the KDE forum too, there are a few regular users there who are knowledgeable on keyboard layout stuff.

yes, I’ve tried that before. fcitx5 works for browsers and vscode but not for telegram desktop as a flatpak.

I’m surprised there is no simple solution with the bare default packages of Fedora 44.

allow flatpak to access the ~/.XCompose file by adding --filesystem=~/.XCompose:ro to the flatpak-run command

you also have to pass the env-variables with --env=VAR=VALUE

see man flatpak-run

I believe this should work out of the box. A user should not be manually changing flatpak application desktop files to include a keyboard config.

That’s why I’m looking to a system-wide configuration that applies to all types of applications.