diff --git a/packages/lib/utils/processStartFlags.ts b/packages/lib/utils/processStartFlags.ts index 4f437cc7f6..3b6830c6f2 100644 --- a/packages/lib/utils/processStartFlags.ts +++ b/packages/lib/utils/processStartFlags.ts @@ -152,14 +152,25 @@ const processStartFlags = async (argv: string[], setDefaults = true) => { continue; } - if (arg.indexOf('--enable-wayland-ime') === 0) { + if ( + arg === '--enable-wayland-ime' + || arg === '--disable-gtk-ime' + || arg.startsWith('--wayland-text-input-version=') + ) { // Electron-specific flag - ignore it - // Enables input method support on Linux/Wayland + // Enables/configures input method support on Linux/Wayland // See https://github.com/laurent22/joplin/issues/10345 argv.splice(0, 1); continue; } + if (arg.startsWith('--gtk-version=')) { + // Electron-specific flag. Allows forcing a different GTK version. + // See https://wiki.archlinux.org/title/Chromium#Native_Wayland_support + 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