-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fcitx5 causes crash due to missing dbus name #12371
Comments
If you look closer, you'll see that it tries multiple dbus names in a try/catch block: Avalonia/src/Avalonia.FreeDesktop/DBusIme/DBusTextInputMethodBase.cs Lines 95 to 108 in 9808a44
So it would eventually find the portal-based version. |
Ignore my previous comment - it looks like only the first dbus name is actually being tried. When I change the order of the names so that "org.freedesktop.portal.Fcitx" is first in the list, it works correctly. |
Figured it out. Exceptions were causing the for loop to end early. |
Describe the bug
With Fcitx5 (on my system), the available dbus names are
org.fcitx.Fcitx-0
,org.fcitx.Fcitx5
, andorg.freedesktop.portal.Fcitx
.On version 11.0.1 my application crashes when a text box is rendered with the error
When I change
org.fcitx.Fcitx
on these lines:Avalonia/src/Avalonia.FreeDesktop/DBusIme/Fcitx/FcitxX11TextInputMethod.cs
Line 18 in 9808a44
Avalonia/src/Avalonia.FreeDesktop/DBusIme/Fcitx/FcitxX11TextInputMethod.cs
Line 22 in 9808a44
to
org.fcitx.Fcitx-0
, it works correctly.To Reproduce
Steps to reproduce the behavior:
Run an application on a Linux system with Fcitx5 installed and try to use a text box.
Expected behavior
The application should not crash.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context
The text was updated successfully, but these errors were encountered: