Input method doesn't show on fcitx-config

280 views
Skip to first unread message

Billy4195

unread,
Nov 11, 2020, 7:50:42 AM11/11/20
to fcitx-dev
Hi Xuetian,

I'm trying to add some new config options to fcitx-chewing.
But after modification, build, and installation.
The chewing input method disappeared in fcitx-config, while if I restore the change then chewing show up again.

I wonder if there is something else that needs to be done in addition to the modification in eim.c, eim.h, config.c, and fcitx-chewing.desc..
(I could also send the PR on GitHub to let you the modification)

BTW, how can I attach gdb on fcitx-chewing or libchewing for me to debug easier?

Thanks!

Billy Su

Weng Xuetian

unread,
Nov 11, 2020, 2:17:06 PM11/11/20
to fcitx-dev
If you want to add any new feature you should contribute to fcitx5-chewing.

Fcitx 4 is only under maintenance mode now.
> --
> You received this message because you are subscribed to the Google Groups "fcitx-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to fcitx-dev+...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/fcitx-dev/aee62156-8dbc-4c53-959c-04fead08cc95n%40googlegroups.com.

Billy4195

unread,
Nov 12, 2020, 9:48:07 AM11/12/20
to fcitx-dev
well...
Because Fcitx 4 is still the default installation in lubuntu20.04, I would like to try it first. 
If I still can't figure out the bug, maybe I will install Fcitx5 in the future, then to contribute to it. 

CS Slayer 在 2020年11月12日 星期四上午3:17:06 [UTC+8] 的信中寫道:

carl chen

unread,
Nov 16, 2020, 4:37:24 AM11/16/20
to fcitx-dev
i make install fcitx5 on ubuntu but can not use , i write /etc/profile.

 export GTK_IM_MODULE=fcitx5 
 export QT_IM_MODULE=fcitx5
 export QT5_IM_MODULE=fcitx5
 export XMODIFIERS=@im=fcitx5  

i don't know way?

install fcitx i find ubuntu  system qt miss sometings。

i use self qt 5.14.2  make install。

Weng Xuetian

unread,
Nov 16, 2020, 6:15:34 AM11/16/20
to fcitx-dev
If you use make install, gtk-query-immodules-3.0 --update-cache might
be required.

fcitx5-diagnose may give you more information about whether you have
installed it correctly.
> To view this discussion on the web visit https://groups.google.com/d/msgid/fcitx-dev/b44bf820-fbf6-4a7e-9448-0dcc31af07e8n%40googlegroups.com.

carl chen

unread,
Nov 16, 2020, 8:13:41 AM11/16/20
to fcitx-dev

uos@ubuntu:~/Desktop$ fcitx5-diagnose
# System Info:
1.  `uname -a`:

        Linux ubuntu 5.4.0-52-generic #57-Ubuntu SMP Thu Oct 15 10:57:00 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

2.  `lsb_release -a`:

        No LSB modules are available.
        Distributor ID: Ubuntu
        Description: Ubuntu 20.04.1 LTS
        Release: 20.04
        Codename: focal

3.  `lsb_release -d`:

        Description: Ubuntu 20.04.1 LTS

4.  `/etc/lsb-release`:

        DISTRIB_ID=Ubuntu
        DISTRIB_RELEASE=20.04
        DISTRIB_CODENAME=focal
        DISTRIB_DESCRIPTION="Ubuntu 20.04.1 LTS"

5.  `/etc/os-release`:

        NAME="Ubuntu"
        VERSION="20.04.1 LTS (Focal Fossa)"
        ID=ubuntu
        ID_LIKE=debian
        PRETTY_NAME="Ubuntu 20.04.1 LTS"
        VERSION_ID="20.04"
        HOME_URL="https://www.ubuntu.com/"
        SUPPORT_URL="https://help.ubuntu.com/"
        BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
        VERSION_CODENAME=focal
        UBUNTU_CODENAME=focal

6.  Desktop Environment:

    Desktop environment is `gnome3`.

7.  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+cn:2+us:3+inet(evdev)" };
            xkb_geometry  { include "pc(pc105)" };
            };

    2.  `xprop`:

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

3.  Locale:

    1.  All locale:

            C
            C.UTF-8
            en_AG
            en_AG.utf8
            en_AU.utf8
            en_BW.utf8
            en_CA.utf8
            en_DK.utf8
            en_GB.utf8
            en_HK.utf8
            en_IE.utf8
            en_IL
            en_IL.utf8
            en_IN
            en_IN.utf8
            en_NG
            en_NG.utf8
            en_NZ.utf8
            en_PH.utf8
            en_SG.utf8
            en_US.utf8
            en_ZA.utf8
            en_ZM
            en_ZM.utf8
            en_ZW.utf8
            POSIX
            zh_CN.utf8
            zh_SG.utf8

    2.  Current locale:

            LANG=zh_CN.UTF-8
            LANGUAGE=zh_CN:en_US:en
            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.  Directories:

    1.  Home:

            /home/uos

    2.  `${XDG_CONFIG_HOME}`:

        Environment variable `XDG_CONFIG_HOME` is not set.

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

    3.  Fcitx5 Settings Directory:

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

5.  Current user:

    The script is run as uos (1000).

# Fcitx State:
1.  executable:

    Found fcitx5 at `/usr/local/bin/fcitx5`.

2.  version:

    Fcitx version: `5.0.1`

3.  process:

    Found 1 fcitx5 process:

           5345 fcitx5

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.115`.

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

# Fcitx Configure UI:
1.  Config Tool Wrapper:

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

2.  Config GUI for qt:

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

3.  Config GUI for kde:

    **`kcmshell5` not found.**

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

    **Environment variable XMODIFIERS is "@im=fcitx5" instead of "@im=fcitx". Please check if you have exported it incorrectly in any of your init files.**

    **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_related_environment_variables#XMODIFIERS).**

    Xim Server Name from Environment variable is fcitx5.

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 "fcitx5" instead of "fcitx". Please check if you have exported it incorrectly in any of your init files.**
    **You may have trouble using fcitx in qt4 programs.**

    **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_related_environment_variables#QT_IM_MODULE).**

2.  qt5 - `${QT_IM_MODULE}`:

    **Environment variable QT_IM_MODULE is "fcitx5" instead of "fcitx". Please check if you have exported it incorrectly in any of your init files.**
    **You may have trouble using fcitx in qt5 programs.**

    **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_related_environment_variables#QT_IM_MODULE).**

3.  Qt IM module files:

    Found unknown fcitx5 qt module: `/lib/x86_64-linux-gnu/qt5/plugins/kcm_fcitx.so`.
    Found unknown fcitx5 qt module: `/lib/x86_64-linux-gnu/qt5/plugins/platforminputcontexts/libfcitxplatforminputcontextplugin.so`.
    Found unknown fcitx5 qt module: `/lib/x86_64-linux-gnu/fcitx/qt/libfcitx-quickphrase-editor5.so`.
    Found unknown fcitx5 qt module: `/lib/x86_64-linux-gnu/fcitx/qt/libfcitx-libpinyin-dictmanager.so`.
    Found fcitx5 qt5 module: `/usr/local/lib/fcitx5/qt5/libfcitx-quickphrase-editor5.so`.
    **Cannot find fcitx5 input method module for Qt4.**
    **Cannot find fcitx5 input method module for Qt5.**

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

    **Environment variable GTK_IM_MODULE is "fcitx5" instead of "fcitx". Please check if you have exported it incorrectly in any of your init files.**
    **You may have trouble using fcitx in gtk programs.**

    **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_related_environment_variables#GTK_IM_MODULE).**

2.  `gtk-query-immodules`:

    1.  gtk 2:

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

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

    2.  gtk 3:

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

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

3.  Gtk IM module cache:

    1.  gtk 2:

        Found immodules cache for gtk `2.24.32` at `/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

        **Failed to find fcitx5 in immodule cache at `/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/immodules.cache`**

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

    2.  gtk 3:

        Found immodules cache for gtk `3.24.20` at `/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.24.20

        **Failed to find fcitx5 in immodule cache at `/lib/x86_64-linux-gnu/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/local/share/fcitx5/addon`.

2.  Addon List:

    1.  Found 25 enabled addons:

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

    2.  Found 0 disabled addons:

3.  Addon Libraries:

    All libraries for all addons are found.

4.  User Interface:

    Found 2 enabled user interface addons:

        Classic User Inteface
        KDE Input Method Panel

# Log:
1.  `date`:

        2020年 11月 16日 星期一 05:06:03 PST

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

    `/crash.log` not found.
uos@ubuntu:~/Desktop$ 


as the log ,i think i need change libqt??.so.and make install gtk-query-immodules.
 
ubunutu is different  from debian.need other things.
Reply all
Reply to author
Forward
0 new messages