在运行时, 增加一个环境变量, 让它使用x11 的输入法后端
修改 /usr/share/applications/org.gnome.Dia.desktop
改Exec=dia %F这一行,
改为 Exec=env GDK_BACKED=X11 dia %F
或者安装https://mirrors.tuna.tsinghua.edu.cn/bjlx/pool/main/d/dia/的deb包
然后在输入字符时, 按右键点输入法,选X输入法
--- dia-0.98+git20250126.orig/data/org.gnome.Dia.desktop.in
+++ dia-0.98+git20250126/data/org.gnome.Dia.desktop.in
@@ -3,7 +3,7 @@ Name=Dia
GenericName=Diagram Editor
Comment=Edit your Diagrams
Type=Application
-Exec=dia %F
+Exec=env GDK_BACKEND=x11 dia %F
# Translators: Do NOT translate or transliterate this text (this is an icon file name)!
Icon=org.gnome.Dia
# For Wayland until GtkApplication is used: