You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Electron not respecting diacritics and/or keyboard input method in Wayland sessions #46823
I agree to follow the Code of Conduct that this project adheres to.
I have searched the issue tracker for a bug report that matches the one I want to file, without success.
Electron Version
34 and 33.4.0
What operating system(s) are you using?
Other Linux
Operating System Version
6.14.3-arch1-1
What arch are you using?
x64
Last Known Working Electron version
No response
Expected Behavior
Typing dead keys like '+m when using a keyboard layout us-intl with dead keys should output 'm and not ḿ
Actual Behavior
Typing '+m or any other diacritic in any applications that use Electron (I tested with Discord, Spotify, Obsidian, and 1Password) will type ḿ and other non-desired diacritics by my keyboard configurations.
I've set both .XCompose to avoid some diacritics, which is respected in all other apps, except for the ones that use Electron in the background. I'm also using ELECTRON_OZONE_PLATFORM_HINT=auto in all of these to mitigate a problem where XWayland cannot detect windows that are on a secondary monitor, but even without the flag, on the main monitor, the diacritics keep appearing.
Testcase Gist URL
No response
Additional Information
Weird enough, this behavior is also happening with Vivaldi Browser (already sent a bug report to them) when forcing Chromium flags to use Wayland the same way as other Electron applications. I'm not sure if they use Electron or some derivative in the software, but the bug is the same.
Could you please share the code for a minimal Electron app that reproduces the issue and all the options you run it with? (Names of production apps don't help us fix issues, unfortunately.)
Additionally, could you please check if you see the same issue in Chrome/Chromium?
Hello @khaosdoctor. Thanks for reporting this and helping to make Electron better!
Would it be possible for you to make a standalone testcase with only the code necessary to reproduce the issue? For example, Electron Fiddle is a great tool for making small test cases and makes it easy to publish your test case to a gist that Electron maintainers can use.
Stand-alone test cases make fixing issues go more smoothly: it ensure everyone's looking at the same issue, it removes all unnecessary variables from the equation, and it can also provide the basis for automated regression tests.
Now adding the
blocked/need-reproNeeds a test case to reproduce the bug
label for this reason. After you make a test case, please link to it in a followup comment. This issue will be closed in 10 days if the above is not addressed.
Also, Electron fiddle has the same exact problem, however, I think it's already running in "wayland mode" by default, so it just outputs these weird letters even though my keyboard is not set to output them explicitly (but on .XCompose which I'm not sure it's a file Electron/Chrome picks up in Wayland)
Additionally, could you please check if you see the same issue in Chrome/Chromium?
It happens in Vivaldi browser as well, when I enable the following flags in ~/.config/chromium-flags.conf:
Does the issue repro when running with --disable-gtk-ime and the wayland ozone platform ?
Yes, I tested in Spotify (which should accept all the flags), and obsidian. But I couldn't test with the others that are using environment variables, is there an environment variable that I can set to disable it?
Yes, I tested in Spotify (which should accept all the flags), and obsidian. But I couldn't test with the others that are using environment variables, is there an environment variable that I can set to disable it?
In Electron Fiddle, you can specify flags in the settings. Then you can test with your gist. (That'll be the most reliable way to test anyway.)
This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment!
This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment!
This issue has been closed due to inactivity, and will not be monitored. If this is a bug and you can reproduce this issue on a supported version of Electron please open a new issue and include instructions for reproducing the issue.
Activity
nikwen commentedon Apr 28, 2025
Thanks for reporting!
Could you please share the code for a minimal Electron app that reproduces the issue and all the options you run it with? (Names of production apps don't help us fix issues, unfortunately.)
Additionally, could you please check if you see the same issue in Chrome/Chromium?
electron-issue-triage commentedon Apr 28, 2025
Hello @khaosdoctor. Thanks for reporting this and helping to make Electron better!
Would it be possible for you to make a standalone testcase with only the code necessary to reproduce the issue? For example, Electron Fiddle is a great tool for making small test cases and makes it easy to publish your test case to a gist that Electron maintainers can use.
Stand-alone test cases make fixing issues go more smoothly: it ensure everyone's looking at the same issue, it removes all unnecessary variables from the equation, and it can also provide the basis for automated regression tests.
Now adding the blocked/need-reproNeeds a test case to reproduce the bug
label for this reason. After you make a test case, please link to it in a followup comment. This issue will be closed in 10 days if the above is not addressed.
khaosdoctor commentedon Apr 28, 2025
Sure, I didn't have to do much: https://gist.github.com/khaosdoctor/646931a6520661d40f145bbedde9d5af
Also, Electron fiddle has the same exact problem, however, I think it's already running in "wayland mode" by default, so it just outputs these weird letters even though my keyboard is not set to output them explicitly (but on
.XComposewhich I'm not sure it's a file Electron/Chrome picks up in Wayland)It happens in Vivaldi browser as well, when I enable the following flags in
~/.config/chromium-flags.conf:Which also leads me to think this could be a Chromium issue, but the same issue doesn't happen in Google Chrome.
nikwen commentedon Apr 28, 2025
Thanks! Does this still happen on Electron v35/v36?
10 remaining items
khaosdoctor commentedon May 1, 2025
Yes, I tested in Spotify (which should accept all the flags), and obsidian. But I couldn't test with the others that are using environment variables, is there an environment variable that I can set to disable it?
nikwen commentedon May 1, 2025
In Electron Fiddle, you can specify flags in the settings. Then you can test with your gist. (That'll be the most reliable way to test anyway.)
khaosdoctor commentedon May 1, 2025
Oh sorry! But yes, same problem on the fiddle as well
deepak1556 commentedon May 2, 2025
Thanks for testing, since the issue happens with wayland IME as well it could be narrowed down to a minimal repro for chromium repo. I will take a look this week, if anyone else wants to give it a shot please open an issue via https://issues.chromium.org/issues/wizard with repro using chromium browser.
electron-issue-triage commentedon Jul 31, 2025
This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment!
khaosdoctor commentedon Jul 31, 2025
electron-issue-triage commentedon Oct 31, 2025
This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment!
electron-issue-triage commentedon Nov 30, 2025
This issue has been closed due to inactivity, and will not be monitored. If this is a bug and you can reproduce this issue on a supported version of Electron please open a new issue and include instructions for reproducing the issue.
fix(voxtype): type with dotool so Electron stops eating accents