You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-11-26 22:41:17 +02:00
Desktop: Linux: Add more input-method-related start flags (#12115)
This commit is contained in:
@@ -152,14 +152,25 @@ const processStartFlags = async (argv: string[], setDefaults = true) => {
|
|||||||
continue;
|
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
|
// 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
|
// See https://github.com/laurent22/joplin/issues/10345
|
||||||
argv.splice(0, 1);
|
argv.splice(0, 1);
|
||||||
continue;
|
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) {
|
if (arg.indexOf('--ozone-platform=') === 0) {
|
||||||
// Electron-specific flag - ignore it
|
// Electron-specific flag - ignore it
|
||||||
// Allows users to run the app on native wayland
|
// Allows users to run the app on native wayland
|
||||||
|
|||||||
Reference in New Issue
Block a user