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

This commit is contained in:
Henry Heino authored and GitHub committed 2025-04-17 13:02:21 +01:00
1 parent 9dd82259c6
commit 3ffcf065fc
1 file changed
+13 -2
+13 -2
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