From b69bf84ab6476627b168006b379f78c3c250d21c Mon Sep 17 00:00:00 2001 From: Henry Heino <46334387+personalizedrefrigerator@users.noreply.github.com> Date: Mon, 22 Apr 2024 10:28:26 -0700 Subject: [PATCH] Desktop: Fixes #10345: Linux: Allow passing `--enable-wayland-ime` flag to fix input method issues on startup (#10349) --- packages/lib/utils/processStartFlags.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packages/lib/utils/processStartFlags.ts b/packages/lib/utils/processStartFlags.ts index d425b04d4c..9752851899 100644 --- a/packages/lib/utils/processStartFlags.ts +++ b/packages/lib/utils/processStartFlags.ts @@ -145,6 +145,14 @@ const processStartFlags = async (argv: string[], setDefaults = true) => { continue; } + if (arg.indexOf('--enable-wayland-ime') === 0) { + // Electron-specific flag - ignore it + // Enables input method support on Linux/Wayland + // See https://github.com/laurent22/joplin/issues/10345 + argv.splice(0, 1); + continue; + } + if (arg.indexOf('--ozone-platform=') === 0) { // Electron-specific flag - ignore it // Allows users to run the app on native wayland