我的一个用WINE打开的windows下的一个软件,无法输入中文,
Tofloor
poster avatar
zhangtanghui
deepin
2019-07-08 20:48
Author
我的一个用WINE打开的windows下的一个软件,无法输入中文,其它软件都可以输入:


zhangtanghui@zhangtanghui-PC:~$ fcitx-diagnose
# 系统信息:
1.  `uname -a`:

        Linux zhangtanghui-PC 4.15.0-30deepin-generic #31 SMP Fri Nov 30 04:29:02 UTC 2018 x86_64 GNU/Linux

2.  `lsb_release -a`:

        No LSB modules are available.
        Distributor ID:        Deepin
        Description:        Deepin 15.10.2
        Release:        15.10.2
        Codename:        stable

3.  `lsb_release -d`:

        Description:        Deepin 15.10.2

4.  `/etc/lsb-release`:

        DISTRIB_ID=Deepin
        DISTRIB_RELEASE="15.10.2"
        DISTRIB_DESCRIPTION="Deepin 15.10.2 "
        DISTRIB_CODENAME=stable

5.  `/etc/os-release`:

        PRETTY_NAME="Deepin 15"
        NAME="Deepin"
        VERSION_ID="15.10.2"
        VERSION="15.10.2"
        ID=deepin
        HOME_URL="https://www.deepin.org/"
        BUG_REPORT_URL="http://feedback.deepin.org/feedback/"

6.  桌面环境:

    桌面环境为 `gnome3`。

7.  Bash Version:

        BASH_VERSION='4.4.12(1)-release'

# 环境:
1.  DISPLAY:

        DISPLAY=':0'

2.  键盘布局:

    1.  `setxkbmap`:

            xkb_keymap {
                    xkb_keycodes  { include "evdev+aliases(qwerty)"        };
                    xkb_types     { include "complete"        };
                    xkb_compat    { include "complete"        };
                    xkb_symbols   { include "pc+us+inet(evdev)"        };
                    xkb_geometry  { include "pc(pc105)"        };
            };

    2.  `xprop`:

            _XKB_RULES_NAMES(STRING) = "evdev", "pc105", "us", "", ""

3.  Locale:

    1.  全部可用 locale:

            C
            C.UTF-8
            en_US.utf8
            POSIX
            zh_CN.utf8
            zh_HK.utf8

    2.  当前 locale:

            LANG=zh_CN.UTF-8
            LANGUAGE=zh_CN
            LC_CTYPE="zh_CN.UTF-8"
            LC_NUMERIC="zh_CN.UTF-8"
            LC_TIME="zh_CN.UTF-8"
            LC_COLLATE="zh_CN.UTF-8"
            LC_MONETARY="zh_CN.UTF-8"
            LC_MESSAGES="zh_CN.UTF-8"
            LC_PAPER="zh_CN.UTF-8"
            LC_NAME="zh_CN.UTF-8"
            LC_ADDRESS="zh_CN.UTF-8"
            LC_TELEPHONE="zh_CN.UTF-8"
            LC_MEASUREMENT="zh_CN.UTF-8"
            LC_IDENTIFICATION="zh_CN.UTF-8"
            LC_ALL=

4.  目录:

    1.  主目录:

            /home/zhangtanghui

    2.  `${XDG_CONFIG_HOME}`:

        环境变量 `XDG_CONFIG_HOME` 没有设定。

        `XDG_CONFIG_HOME` 的当前值是 `~/.config` (`/home/zhangtanghui/.config`)。

    3.  Fcitx 设置目录:

        当前 fcitx 设置目录是 `~/.config/fcitx` (`/home/zhangtanghui/.config/fcitx`)。

5.  当前用户:

    脚本作为 zhangtanghui (1000) 运行。

# Fcitx 状态:
1.  可执行文件:

    在 `/usr/bin/fcitx` 找到了 fcitx.

2.  版本:

    Fcitx 版本: `4.2.9.1`

3.  进程:

    找到了 4 个 fcitx 进程:

         8985 fcitx
         8998 fcitx-dbus-watc
         9177 fcitx
         9195 fcitx-dbus-watc

4.  `fcitx-remote`:

    `fcitx-remote` 工作正常.

5.  DBus interface:

    Using `dbus-send` to check dbus.

    Owner of DBus name `org.fcitx.Fcitx` is `:1.92`.

    PID of DBus name `org.fcitx.Fcitx` owner is `8985`.

# Fcitx 配置界面:
1.  配置工具封装:

    在 `/usr/bin/fcitx-configtool` 找到了 fcitx-configtool。

2.  用于 GTK+-2.0 的配置界面:

    **未找到 gtk2 的配置界面.**

3.  用于 GTK+-3.0 的配置界面:

    在 `/usr/bin/fcitx-config-gtk3` 找到了 `fcitx-config-gtk3`。

4.  KDE 的配置界面:

    **`kcmshell4` 未找到.**

# 前端设置:
## Xim:
1.  `${XMODIFIERS}`:

    **环境变量 XMODIFIERS 的值被设为了 "“@im=fcitx”" 而不是 "@im=fcitx". 请检查您是否在某个初始化文件中错误的设置了它的值.**

    **请使用您发行版提供的工具将环境变量 XMODIFIERS 设为 "@im=fcitx" 或者将 `export XMODIFIERS=@im=fcitx` 添加到您的 `~/.xprofile` 中. 参见 [输入法相关的环境变量: XMODIFIERS](http://fcitx-im.org/wiki/Input_method_related_environment_variables/zh-cn#XMODIFIERS).**

    从环境变量中获取的 Xim 服务名称为 fcitx.

2.  根窗口上的 XIM_SERVERS:

    Xim 服务的名称与环境变量中设置的相同.

## Qt:
1.  qt4 - `${QT4_IM_MODULE}`:

    环境变量 QT4_IM_MODULE 已经正确地设为了 "fcitx".

2.  qt5 - `${QT_IM_MODULE}`:

    环境变量 QT_IM_MODULE 已经正确地设为了 "fcitx".

3.  Qt 输入法模块文件:

    找到了 Qt5 的输入法模块: `/lib/x86_64-linux-gnu/qt5/plugins/platforminputcontexts/libfcitxplatforminputcontextplugin.so`.
    找到了未知的 fcitx qt 模块: `/lib/x86_64-linux-gnu/qt5/plugins/kcm_fcitx.so`.
    找到了 Qt4 的输入法模块: `/lib/x86_64-linux-gnu/qt4/plugins/inputmethods/qtim-fcitx.so`.

## Gtk:
1.  gtk - `${GTK_IM_MODULE}`:

    环境变量 GTK_IM_MODULE 已经正确地设为了 "fcitx".

2.  `gtk-query-immodules`:

    1.  gtk 2:

        **无法找到 gtk 2 的 `gtk-query-immodules`.**

        **无法找到 gtk 2 的 fcitx 输入法模块.**

    2.  gtk 3:

        **无法找到 gtk 3 的 `gtk-query-immodules`.**

        **无法找到 gtk 3 的 fcitx 输入法模块.**

3.  Gtk 输入法模块缓存:

    1.  gtk 2:

        在 `/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/immodules.cache` 找到了 gtk `2.24.31` 的输入法模块缓存.
        版本行:

            # Created by /usr/lib/x86_64-linux-gnu/libgtk2.0-0/gtk-query-immodules-2.0 from gtk+-2.24.31

        已找到 gtk `2.24.31` 的 fcitx 输入法模块.

            "/usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/immodules/im-fcitx.so"
            "fcitx" "Fcitx (Flexible Input Method Framework)" "fcitx" "/usr/share/locale" "ja:ko:zh:*"

    2.  gtk 3:

        在 `/lib/x86_64-linux-gnu/gtk-3.0/3.0.0/immodules.cache` 找到了 gtk `3.22.11` 的输入法模块缓存.
        版本行:

            # Created by /usr/lib/x86_64-linux-gnu/libgtk-3-0/gtk-query-immodules-3.0 from gtk+-3.22.11

        已找到 gtk `3.22.11` 的 fcitx 输入法模块.

            "/usr/lib/x86_64-linux-gnu/gtk-3.0/3.0.0/immodules/im-fcitx.so"
            "fcitx" "Fcitx (Flexible Input Method Framework)" "fcitx" "/usr/share/locale" "ja:ko:zh:*"

4.  Gtk 输入法模块文件:

    1.  gtk 2:

        找到的全部 Gtk 2 输入法模块文件均存在.

    2.  gtk 3:

        找到的全部 Gtk 3 输入法模块文件均存在.

# 配置:
## Fcitx 插件:
1.  插件配置文件目录:

    找到了 fcitx 插件配置目录: `/usr/share/fcitx/addon`.

2.  插件列表:

    1.  找到了 30 个已启用的插件:

            fcitx-autoeng
            fcitx-autoeng-ng
            fcitx-chewing
            fcitx-chttrans
            fcitx-clipboard
            fcitx-dbus
            fcitx-freedesktop-notify
            fcitx-fullwidth-char
            fcitx-fullwidth-char-enhance
            fcitx-imselector
            fcitx-ipc
            fcitx-keyboard
            fcitx-kimpanel-ui
            fcitx-lua
            fcitx-notificationitem
            fcitx-pinyin
            fcitx-pinyin-enhance
            fcitx-punc
            fcitx-punc-ng
            fcitx-quickphrase
            fcitx-remote
            fcitx-sogoucloudpinyin
            fcitx-sogoupinyin
            fcitx-spell
            fcitx-table
            fcitx-unicode
            fcitx-vk
            fcitx-x11
            fcitx-xim
            fcitx-xkbdbus

    2.  找到了 2 个被禁用的插件:

            fcitx-classic-ui
            fcitx-xkb

3.  插件库:

    所有插件所需的库都被找到。

4.  用户界面:

    找到了 1 个已启用的用户界面插件:

        fcitx-kimpanel-ui

    Kimpanel 进程:

         9061 sogou-qimpanel

## 输入法:
1.  找到了 3 个启用的输入法:

        fcitx-keyboard-us
        sogoupinyin
        wbpy

2.  默认输入法:

    您已经正确的将一个键盘输入法 "fcitx-keyboard-us" 设为默认.

# 日志:
1.  `date`:

        2019年 07月 08日 星期一 12:44:19 CST

2.  `~/.config/fcitx/log/`:

        总用量 4
        -rw-r--r-- 1 zhangtanghui zhangtanghui 44 7月   6 17:54 crash.log

3.  `~/.config/fcitx/log/crash.log`:

        fcitx: BadWindow (invalid Window parameter)


Reply Favorite View the author
All Replies
avatar
zhangtanghui
deepin
2019-07-08 20:49
#1
哪位大神,请帮忙下,感谢!
Reply View the author
avatar
johnmy
deepin
2019-12-18 04:59
#2
https://bbs.deepin.org/post/180384
哪位大神,请帮忙下,感谢!

现在解决了吗?我也遇到了。Deepin-wine的一个程序无法输入中文。
Reply View the author