您尚未登录。

#1 2021-03-04 17:58:26

handsomeboy
会员
注册时间: 2021-03-04
帖子: 1

求教大神,系统是ubuntu的,装了google输入法,为什么不能在桌面新建文本文档后输入中文(网页上都可以输入)

# System Info:
1.  `uname -a`:

        Linux lbx 5.9.16-050916-generic #202012211331 SMP Mon Dec 21 14:11:13 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

2.  `lsb_release -a`:

        No LSB modules are available.
        Distributor ID: neon
        Description:    KDE neon User Edition 5.19
        Release:        18.04
        Codename:       bionic

3.  `lsb_release -d`:

        Description:    KDE neon User Edition 5.19

4.  `/etc/lsb-release`:

        DISTRIB_ID=neon
        DISTRIB_RELEASE=18.04
        DISTRIB_CODENAME=bionic
        DISTRIB_DESCRIPTION="KDE neon User Edition 5.19"

5.  `/etc/os-release`:

        NAME="KDE neon"
        VERSION="5.19"
        ID=neon
        ID_LIKE="ubuntu debian"
        PRETTY_NAME="KDE neon User Edition 5.19"
        VARIANT="User Edition"
        VERSION_ID="18.04"
        HOME_URL="http://neon.kde.org/"
        SUPPORT_URL="http://neon.kde.org/"
        BUG_REPORT_URL="http://bugs.kde.org/"
        LOGO=start-here-kde-neon
        PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
        VERSION_CODENAME=bionic
        UBUNTU_CODENAME=bionic

6.  Desktop Environment:

    Desktop environment is `kde`.

7.  Bash Version:

        BASH_VERSION='4.4.20(1)-release'

# Environment:
1.  DISPLAY:

        DISPLAY=':0'

2.  Keyboard Layout:

    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.  All locale:

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

    2.  Current locale:

            LANG=en_US.UTF-8
            LANGUAGE=zh_CN:en_US
            LC_CTYPE="en_US.UTF-8"
            LC_NUMERIC=zh_CN.UTF-8
            LC_TIME=zh_CN.UTF-8
            LC_COLLATE="en_US.UTF-8"
            LC_MONETARY=zh_CN.UTF-8
            LC_MESSAGES="en_US.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.  Directories:

    1.  Home:

            /home/lbx

    2.  `${XDG_CONFIG_HOME}`:

        Environment variable `XDG_CONFIG_HOME` is not set.

        Current value of `XDG_CONFIG_HOME` is `~/.config` (`/home/lbx/.config`).

    3.  Fcitx Settings Directory:

        Current fcitx settings directory is `~/.config/fcitx` (`/home/lbx/.config/fcitx`).

5.  Current user:

    The script is run as lbx (1000).

# Fcitx State:
1.  executable:

    Found fcitx at `/usr/bin/fcitx`.

2.  version:

    Fcitx version: `4.2.9.6`

3.  process:

    Found 2 fcitx processes:

         2623 fcitx
         2633 fcitx-dbus-watc

4.  `fcitx-remote`:

    `fcitx-remote` works properly.

5.  DBus interface:

    Using `dbus-send` to check dbus.

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

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

# Fcitx Configure UI:
1.  Config Tool Wrapper:

    Found fcitx-configtool at `/usr/bin/fcitx-configtool`.

2.  Config GUI for gtk2:

    **Config GUI for gtk2 not found.**

3.  Config GUI for gtk3:

    Found `fcitx-config-gtk3` at `/usr/bin/fcitx-config-gtk3`.

4.  Config GUI for kde:

    **`kcmshell4` not found.**

# Frontends setup:
## Xim:
1.  `${XMODIFIERS}`:

    **XMODIFIERS is not set**

    **Please set environment variable XMODIFIERS to "@im=fcitx" using the tool your distribution provides or add `export XMODIFIERS=@im=fcitx` to your `~/.xprofile`. See [Input Method Related Environment Variables: XMODIFIERS](http://fcitx-im.org/wiki/Input_method_r … XMODIFIERS).**
    Xim Server Name from Environment variable is fcitx.

2.  XIM_SERVERS on root window:

    Xim server name is the same with that set in the environment variable.

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

    **Please set environment variable QT_IM_MODULE to "fcitx" using the tool your distribution provides or add `export QT_IM_MODULE=fcitx` to your `~/.xprofile`. See [Input Method Related Environment Variables: QT_IM_MODULE](http://fcitx-im.org/wiki/Input_method_r … _IM_MODULE).**

2.  qt5 - `${QT_IM_MODULE}`:

    **Please set environment variable QT_IM_MODULE to "fcitx" using the tool your distribution provides or add `export QT_IM_MODULE=fcitx` to your `~/.xprofile`. See [Input Method Related Environment Variables: QT_IM_MODULE](http://fcitx-im.org/wiki/Input_method_r … _IM_MODULE).**

3.  Qt IM module files:

    Found fcitx im module for Qt5: `/usr/lib/x86_64-linux-gnu/qt5/plugins/platforminputcontexts/libfcitxplatforminputcontextplugin.so`.
    Found fcitx im module for Qt4: `/usr/lib/x86_64-linux-gnu/qt4/plugins/inputmethods/qtim-fcitx.so`.

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

    **Please set environment variable GTK_IM_MODULE to "fcitx" using the tool your distribution provides or add `export GTK_IM_MODULE=fcitx` to your `~/.xprofile`. See [Input Method Related Environment Variables: GTK_IM_MODULE](http://fcitx-im.org/wiki/Input_method_r … _IM_MODULE).**

2.  `gtk-query-immodules`:

    1.  gtk 2:

        **Cannot find `gtk-query-immodules` for gtk 2**

        **Cannot find fcitx im module for gtk 2.**

    2.  gtk 3:

        **Cannot find `gtk-query-immodules` for gtk 3**

        **Cannot find fcitx im module for gtk 3.**

3.  Gtk IM module cache:

    1.  gtk 2:

        Found immodules cache for gtk `2.24.32` at `/usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/immodules.cache`.
        Version Line:

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

        Found fcitx im modules for gtk `2.24.32`.

            "/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:

        Found immodules cache for gtk `3.22.30` at `/usr/lib/x86_64-linux-gnu/gtk-3.0/3.0.0/immodules.cache`.
        Version Line:

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

        Found fcitx im modules for gtk `3.22.30`.

            "/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 IM module files:

    1.  gtk 2:

        All found Gtk 2 immodule files exist.

    2.  gtk 3:

        All found Gtk 3 immodule files exist.

# Configuration:
## Fcitx Addons:
1.  Addon Config Dir:

    Found fcitx addon config directory: `/usr/share/fcitx/addon`.

2.  Addon List:

    1.  Found 25 enabled addons:

            fcitx-autoeng
            fcitx-chttrans
            fcitx-classic-ui
            fcitx-clipboard
            fcitx-dbus
            fcitx-freedesktop-notify
            fcitx-fullwidth-char
            fcitx-googlepinyin
            fcitx-imselector
            fcitx-ipc
            fcitx-ipcportal
            fcitx-keyboard
            fcitx-kimpanel-ui
            fcitx-lua
            fcitx-notificationitem
            fcitx-punc
            fcitx-quickphrase
            fcitx-remote
            fcitx-spell
            fcitx-unicode
            fcitx-vk
            fcitx-x11
            fcitx-xim
            fcitx-xkb
            fcitx-xkbdbus

    2.  Found 0 disabled addons:

3.  Addon Libraries:

    All libraries for all addons are found.

4.  User Interface:

    Found 2 enabled user interface addons:

        fcitx-classic-ui
        fcitx-kimpanel-ui

## Input Methods:
1.  Found 2 enabled input methods:

        googlepinyin
        fcitx-keyboard-us

2.  Default input methods:

    **Your first (default) input method is googlepinyin instead of a keyboard input method. You may have trouble deactivate fcitx.**

# Log:
1.  `date`:

        2021年 03月 04日 星期四 16:42:25 CST

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

        total 0

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

    `~/.config/fcitx/log/crash.log` not found.

最近编辑记录 handsomeboy (2021-03-04 17:59:57)

离线

#2 2021-03-04 19:34:30

依云
会员
所在地: a.k.a. 百合仙子
注册时间: 2011-08-21
帖子: 8,384
个人网站

Re: 求教大神,系统是ubuntu的,装了google输入法,为什么不能在桌面新建文本文档后输入中文(网页上都可以输入)

你的输入法相关环境变量没有设置好(XMODIFIERS=@im=fcitx QT_IM_MODULE=fcitx GTK_IM_MODULE=fcitx)。这样的结果是,能不能用、能在哪些程序里用,完全凭运气。
可以尝试在 ~/.xprofile 里 export 上述三个环境变量。不知道你使用的是什么登录管理器,sddm 是肯定会读取 .xprofile 的。

离线

#3 2021-03-05 06:50:08

silkriver
会员
注册时间: 2020-07-24
帖子: 147

Re: 求教大神,系统是ubuntu的,装了google输入法,为什么不能在桌面新建文本文档后输入中文(网页上都可以输入)

请看看这个短视频吧 https://www.bilibili.com/video/BV18K4y1S7vc

离线

#4 2022-10-26 23:02:55

hadoop
会员
注册时间: 2022-10-26
帖子: 7

Re: 求教大神,系统是ubuntu的,装了google输入法,为什么不能在桌面新建文本文档后输入中文(网页上都可以输入)

我的arch+deepin 用lightdm 自带的文本编辑器,不能输入中文,输入法是GooglePinyin,网页和sublime都可以输入中文,就很奇怪。

离线

#5 2022-10-27 10:22:40

hadoop
会员
注册时间: 2022-10-26
帖子: 7

Re: 求教大神,系统是ubuntu的,装了google输入法,为什么不能在桌面新建文本文档后输入中文(网页上都可以输入)

我的好了,我卸载了谷歌输入法,然后安装fcitx5 sudo pacman -S  fcitx5  fcitx5-im fcitx5-chinese-addons fcitx5-pinyin-zhwiki 然后我的自带编辑器装回来也可以输入中文,命令窗口也可以输入中文啦,vlc 软件之前不能输入中文现在也可以了,可能是这些软件都是QT有关,fxitx5 支持qt更全面,具体我也不清楚。看论坛大佬的分析,感觉应该用fcitx5就对了。

离线

#6 2022-11-03 22:00:01

ABCdef
会员
注册时间: 2022-11-02
帖子: 7

Re: 求教大神,系统是ubuntu的,装了google输入法,为什么不能在桌面新建文本文档后输入中文(网页上都可以输入)

我跟你相反,网站不能文档可以,没管它,第二天都能了。可能重启了原因吧。  有谁能发个五笔输入法的安装包我吗?谢谢    117610794@163.com

离线

页脚