Desktop: Linux: Add more input-method-related start flags (#12115)

pull/12134/head
Henry Heino 2025-04-17 05:02:21 -07:00 committed by GitHub
parent 9dd82259c6
commit 3ffcf065fc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 13 additions and 2 deletions

View File

@ -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