fcitx / fcitx5

maybe a new fcitx.
1.6k stars 118 forks source link

under dwm with fedora 33, it's not work except terminal, #123

Closed iysheng closed 4 years ago

iysheng commented 4 years ago

i use dwm with xdm on fedora 33, now i can just use fcit5 in termianl , but i could not use it under firefox, the .xprofile as bewlow:

export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export XMODIFIERS=@im=fcitx

fcitx5 &

and the fcitx5-diagnose log as bleow:

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

        Linux red.loacldomain 5.8.10-300.fc33.x86_64 #1 SMP Thu Sep 17 18:20:53 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

2.  `lsb_release`:

    `lsb_release` not found.

3.  `/etc/lsb-release`:

    `/etc/lsb-release` not found.

4.  `/etc/os-release`:

        NAME=Fedora
        VERSION="33 (Thirty Three Prerelease)"
        ID=fedora
        VERSION_ID=33
        VERSION_CODENAME=""
        PLATFORM_ID="platform:f33"
        PRETTY_NAME="Fedora 33 (Thirty Three Prerelease)"
        ANSI_COLOR="0;38;2;60;110;180"
        LOGO=fedora-logo-icon
        CPE_NAME="cpe:/o:fedoraproject:fedora:33"
        HOME_URL="https://fedoraproject.org/"
        DOCUMENTATION_URL="https://docs.fedoraproject.org/en-US/fedora/f33/system-administrators-guide/"
        SUPPORT_URL="https://fedoraproject.org/wiki/Communicating_and_getting_help"
        BUG_REPORT_URL="https://bugzilla.redhat.com/"
        REDHAT_BUGZILLA_PRODUCT="Fedora"
        REDHAT_BUGZILLA_PRODUCT_VERSION=33
        REDHAT_SUPPORT_PRODUCT="Fedora"
        REDHAT_SUPPORT_PRODUCT_VERSION=33
        PRIVACY_POLICY_URL="https://fedoraproject.org/wiki/Legal:PrivacyPolicy"

5.  Desktop Environment:

    Cannot determine desktop environment.

6.  Bash Version:

        BASH_VERSION='5.0.17(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.utf8
            en_AG
            en_AU
            en_AU.utf8
            en_BW
            en_BW.utf8
            en_CA
            en_CA.utf8
            en_DK
            en_DK.utf8
            en_GB
            en_GB.iso885915
            en_GB.utf8
            en_HK
            en_HK.utf8
            en_IE
            en_IE@euro
            en_IE.utf8
            en_IL
            en_IN
            en_NG
            en_NZ
            en_NZ.utf8
            en_PH
            en_PH.utf8
            en_SC.utf8
            en_SG
            en_SG.utf8
            en_US
            en_US.iso885915
            en_US.utf8
            en_ZA
            en_ZA.utf8
            en_ZM
            en_ZW
            en_ZW.utf8
            POSIX

    2.  Current locale:

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

4.  Directories:

    1.  Home:

            /home/yangyongsheng

    2.  `${XDG_CONFIG_HOME}`:

        Environment variable `XDG_CONFIG_HOME` is not set.

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

    3.  Fcitx5 Settings Directory:

        Current fcitx5 settings directory is `~/.config/fcitx5` (`/home/yangyongsheng/.config/fcitx5`).

5.  Current user:

    The script is run as yangyongsheng (1000).

# Fcitx State:
1.  executable:

    Found fcitx5 at `/bin/fcitx5`.

2.  version:

    Fcitx version: `5.0`

3.  process:

    Found 2 fcitx5 processes:

           9248 fcitx5
          11924 fcitx5-diagnose

4.  `fcitx5-remote`:

    `fcitx5-remote` works properly.

5.  DBus interface:

    Using `dbus-send` to check dbus.

    Owner of DBus name `org.fcitx.Fcitx5` is `:1.40`.

    PID of DBus name `org.fcitx.Fcitx5` owner is `9248`.

# Fcitx Configure UI:
1.  Config Tool Wrapper:

    Found fcitx5-configtool at `/bin/fcitx5-configtool`.

2.  Config GUI for qt:

    Found `fcitx5-config-qt` at `/bin/fcitx5-config-qt`.

3.  Config GUI for kde:

    **`kcmshell5` not found.**

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

    Environment variable XMODIFIERS is set to "@im=fcitx" correctly.
    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}`:

    Environment variable QT_IM_MODULE is set to "fcitx" correctly.

2.  qt5 - `${QT_IM_MODULE}`:

    Environment variable QT_IM_MODULE is set to "fcitx" correctly.

3.  Qt IM module files:

    Found fcitx5 qt5 module: `/lib64/fcitx5/qt5/libfcitx-quickphrase-editor5.so`.
    Found fcitx5 im module for Qt5: `/lib64/qt5/plugins/platforminputcontexts/libfcitx5platforminputcontextplugin.so`.
    **Cannot find fcitx5 input method module for Qt4.**

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

    Environment variable GTK_IM_MODULE is set to "fcitx" correctly.

2.  `gtk-query-immodules`:

    1.  gtk 2:

        Found `gtk-query-immodules` for gtk `2.24.32` at `/bin/gtk-query-immodules-2.0-64`.
        Version Line:

            # Created by /bin/gtk-query-immodules-2.0-64 from gtk+-2.24.32

        **Failed to find fcitx5 in the output of `/bin/gtk-query-immodules-2.0-64`**

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

    2.  gtk 3:

        Found `gtk-query-immodules` for gtk `3.24.23` at `/bin/gtk-query-immodules-3.0-64`.
        Version Line:

            # Created by /bin/gtk-query-immodules-3.0-64 from gtk+-3.24.23

        **Failed to find fcitx5 in the output of `/bin/gtk-query-immodules-3.0-64`**

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

3.  Gtk IM module cache:

    1.  gtk 2:

        **Cannot find immodules cache for gtk 2**

        **Cannot find fcitx5 im module for gtk 2 in cache.**

    2.  gtk 3:

        Found immodules cache for gtk `3.24.23` at `/lib64/gtk-3.0/3.0.0/immodules.cache`.
        Version Line:

            # Created by gtk-query-immodules-3.0-64 from gtk+-3.24.23

        **Failed to find fcitx5 in immodule cache at `/lib64/gtk-3.0/3.0.0/immodules.cache`**

        **Cannot find fcitx5 im module for gtk 3 in cache.**

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 fcitx5 addon config directory: `/usr/share/fcitx5/addon`.

2.  Addon List:

    1.  Found 29 enabled addons:

            Chewing
            Simplified and Traditional Chinese Translation
            Classic User Inteface
            Clipboard
            Cloud Pinyin
            DBus
            DBus Frontend
            Emoji
            Full width character
            IBus Frontend
            Lua IME API
            Input method selector
            Keyboard
            KDE Input Method Panel
            Lua Addon Loader
            Status Notifier
            Notification
            Pinyin
            Extra Pinyin functionality
            Punctuation
            Quick Phrase
            Rime
            Spell
            Table
            Unicode
            Wayland
            Wayland Input method frontend
            XCB
            X Input Method Frontend

    2.  Found 0 disabled addons:

3.  Addon Libraries:

    **Cannot find file `ibusfrontend` of addon `IBus`.**

    **Cannot find file `clipboard` of addon `Clipboard`.**

    **Cannot find file `pinyinhelper` of addon `Extra`.**

    **Cannot find file `xcb` of addon `XCB`.**

    **Cannot find file `emoji` of addon `Emoji`.**

    **Cannot find file `pinyin` of addon `Pinyin`.**

    **Cannot find file `fullwidth` of addon `Full`.**

    **Cannot find file `spell` of addon `Spell`.**

    **Cannot find file `wayland` of addon `Wayland`.**

    **Cannot find file `quickphrase` of addon `Quick`.**

    **Cannot find file `imselector` of addon `Input`.**

    **Cannot find file `table` of addon `Table`.**

    **Cannot find file `classicui` of addon `Classic`.**

    **Cannot find file `chttrans` of addon `Simplified`.**

    **Cannot find file `export:rime` of addon `Rime`.**

    **Cannot find file `dbusfrontend` of addon `DBus`.**

    **Cannot find file `unicode` of addon `Unicode`.**

    **Cannot find file `dbus` of addon `DBus`.**

    **Cannot find file `waylandim` of addon `Wayland`.**

    **Cannot find file `notificationitem` of addon `Status`.**

    **Cannot find file `notifications` of addon `Notification`.**

    **Cannot find file `luaaddonloader` of addon `Lua`.**

    **Cannot find file `xim` of addon `X`.**

    **Cannot find file `cloudpinyin` of addon `Cloud`.**

    **Cannot find file `punctuation` of addon `Punctuation`.**

    **Cannot find file `chewing` of addon `Chewing`.**

    **Cannot find file `kimpanel` of addon `KDE`.**

4.  User Interface:

    Found 2 enabled user interface addons:

        Classic User Inteface
        KDE Input Method Panel

# Log:
1.  `date`:

        Sat Sep 26 08:29:37 AM CST 2020

2.  `/home/yangyongsheng/.config/fcitx5/crash.log`:

    `/crash.log` not found.
CoelacanthusHex commented 4 years ago

再确认一遍你的包是否装全了,你的gtk immodule和很多其它东西似乎没有安装

karuboniru commented 4 years ago

Are you using fcitx5 from fedora repos or built by your self? Since I can't reproduce this in latest Fedora 33 pre-release.

I think that is because lack of fcitx5-gtk package, per ayalhw said.

图片

iysheng commented 4 years ago

@karuboniru thanks for your patient test, I install fcitx5 from fedora repos , i meet a problem before when i try to install fcitx5-chinese-addons package meet some err whem comile under fedora 33 just follow the link,i will try install extra packages as you mentioned, then i will see wether slove the issue.

karuboniru commented 4 years ago

IIRC, for pre-release Fedora, test repos are enabled by default (but some mirrors are not providing fedora 33 yet). Usually, you need to install

iysheng commented 4 years ago

@karuboniru @ayalhw thanks for your help , after I install fcitx5-gtk then it worked, I can use fcitx5 under firefox.感谢你们,我的和 fcitx5 有关的安装包列表:

$ rpm -qa | grep "fcitx5"
fcitx5-data-0-0.7.20200912gitd0383bc.fc33.noarch
fcitx5-0-0.7.20200912gitd0383bc.fc33.x86_64
fcitx5-qt-0-0.3.20200912git02bbbf6.fc33.x86_64
fcitx5-configtool-0-0.4.20200912git8f113a7.fc33.x86_64
fcitx5-chewing-0-0.3.20200822git7f7ea5e.fc33.x86_64
fcitx5-devel-0-0.7.20200912gitd0383bc.fc33.x86_64
fcitx5-rime-0-0.4.20200912git6da82ec.fc33.x86_64
fcitx5-lua-0-0.3.20200912gitff218dd.fc33.x86_64
fcitx5-chinese-addons-data-0-0.3.20200912git591848d.fc33.noarch
fcitx5-chinese-addons-0-0.3.20200912git591848d.fc33.x86_64
fcitx5-gtk-0-0.4.20200916git8835e96.fc33.x86_64