From 9190d25987779bfc58eccc86becc0b38c7a54552 Mon Sep 17 00:00:00 2001 From: Shaojun Li Date: Thu, 25 Jul 2024 04:14:04 +0800 Subject: [PATCH] Compatible with "fcitx5" envrionment variable (#16434) --- src/Avalonia.FreeDesktop/DBusIme/X11DBusImeHelper.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Avalonia.FreeDesktop/DBusIme/X11DBusImeHelper.cs b/src/Avalonia.FreeDesktop/DBusIme/X11DBusImeHelper.cs index 8042d3bff23..2312e67767d 100644 --- a/src/Avalonia.FreeDesktop/DBusIme/X11DBusImeHelper.cs +++ b/src/Avalonia.FreeDesktop/DBusIme/X11DBusImeHelper.cs @@ -12,6 +12,8 @@ internal class X11DBusImeHelper { ["fcitx"] = static conn => new DBusInputMethodFactory(_ => new FcitxX11TextInputMethod(conn)), + ["fcitx5"] = static conn => + new DBusInputMethodFactory(_ => new FcitxX11TextInputMethod(conn)), ["ibus"] = static conn => new DBusInputMethodFactory(_ => new IBusX11TextInputMethod(conn)) };