AvaloniaUI / Avalonia

Develop Desktop, Embedded, Mobile and WebAssembly apps with C# and XAML. The most popular .NET UI client technology
https://avaloniaui.net
MIT License
26.05k stars 2.25k forks source link

Cannot input Chinese (even change IME to Chinese) in Textbox on Kylin V10 #17315

Closed a6754z closed 3 days ago

a6754z commented 1 month ago

Describe the bug

Cannot change input method to Chinese and input Chinese in a textbox defined like below on Kylin V10, But works fine on Windows. The default font has been installed on the system and can be displayed correctly.

Noto Sans CJK TC Regular

<TextBox x:Name="txtDesc" Margin="10,0,0,0" FontFamily="{DynamicResource DefaultFont}" FontSize="{DynamicResource DefaultFontSize}" Grid.Column="1" Height="220" VerticalAlignment="Top" AcceptsReturn="True" TextWrapping="Wrap" Text="{Binding Description}" Watermark="{x:Static resx:Resource.IDS_PROBLEM_REPORT_PLACE_HOLDER}"/>

I also tried the solution for the issue https://github.com/AvaloniaUI/Avalonia/issues/6155, but still not work.

image

To Reproduce

Run a applicaiton with textboxes on Kylin V10.

Expected behavior

Can change input method to Chinese and input Chinese in the Textbox.

Avalonia version

11.0.10

OS

Linux

Additional context

No response

a6754z commented 1 month ago

image

image

yangjieshao commented 2 weeks ago

你是不是用root权限启动了? did you start by root?

a6754z commented 1 week ago

你是不是用root权限启动了?

是的 Yes

yangjieshao commented 4 days ago

你是不是用root权限启动了?

是的

输入法不是root权限的 root权限的程序没法加载非root权限的输入法

A program with root privileges cannot load input methods whitch do not had root privileges

timunie commented 4 days ago

@yangjieshao @a6754z any chance to translate it to ebglish as well?

a6754z commented 3 days ago

你是不是用root权限启动了?

是的

输入法不是root权限的 root权限的程序没法加载非root权限的输入法

A program with root privileges cannot load input methods whitch do not had root privileges

确实是这个原因,非常感谢!

Yes. That's indeed the reason. After change to start the application with non-root privilege, I can enter the Chinese in textbox. Thanks a lot!