You are not logged in.

#1 2017-02-16 08:10:30

oldz
Member
Registered: 2017-02-16
Posts: 4

[SOLVED] my fcitx doesn't work

I have just installed arch for a week, and there is some problems of fcitx in my arch.

The fcitx can start with system and I can use the fcitx-configtool,but only the first input method changed the keyboard layout. Nothing works. The Virtual Keyboard can be seen but doesn't work, too.
So I can't use Chinese input method, that's bad.
#############################################################################################################
this is my ~/.xprofile(It's new):

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

#############################################################################################################
I have added these to my /etc/environment:

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

#############################################################################################################
My Input Method has Pinyin and Keyboard-APL keyboard sysbols, but the
fcitx-diagnose:

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

        Linux afireswallow 4.9.8-1-ARCH #1 SMP PREEMPT Mon Feb 6 12:59:40 CET 2017 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="Arch Linux"
        PRETTY_NAME="Arch Linux"
        ID=arch
        ID_LIKE=archlinux
        ANSI_COLOR="0;36"
        HOME_URL="https://www.archlinux.org/"
        SUPPORT_URL="https://bbs.archlinux.org/"
        BUG_REPORT_URL="https://bugs.archlinux.org/"

5.  Desktop Environment:

    Desktop environment is `gnome3`.

6.  Bash Version:

        BASH_VERSION='4.4.11(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+us:2+inet(evdev)"    };
                xkb_geometry  { include "pc(pc105)"    };
            };

    2.  `xprop`:

        `xprop` not found.

3.  Locale:

    1.  All locale:

            C
            en_US.utf8
            POSIX
            zh_CN
            zh_CN.gb2312
            zh_CN.utf8
            zh_TW.utf8

    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:

            /root

    2.  `${XDG_CONFIG_HOME}`:

        Environment variable `XDG_CONFIG_HOME` is not set.

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

    3.  Fcitx Settings Directory:

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

5.  Current user:

    The script is run as root (0).

    1.  `sudo` Environment Variables:

        SUDO_COMMAND is not set.

        SUDO_USER is not set.

        SUDO_UID is not set.

        SUDO_GID is not set.

    2.  Running as root:

        **You are probably logging in as `root` or using `sudo` to run this script. This either means you have security problems or the result of this script may not be accurate. See [Why is it bad to run as root]([url]https://www.google.com/search?q=Why+is+it+bad+to+run+as+root[/url]) or [sudo environment variables]([url]https://www.google.com/search?q=sudo+environment+variables[/url]) for more information.**

# Fcitx State:
1.  executable:

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

2.  version:

    Fcitx version: `4.2.9.1`

3.  process:

    Found 2 fcitx processes:

          925 fcitx
          947 fcitx-dbus-watc

4.  `fcitx-remote`:

    **Cannot connect to fcitx correctly.**

# 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}`:

    Environment variable XMODIFIERS is set to "@im=fcitx" correctly.
    Xim Server Name from Environment variable is fcitx.

2.  XIM_SERVERS on root window:

    **`xprop` not found.**

## 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:
    **Cannot find fcitx input method module for Qt4.**
    **Cannot find fcitx input method module for Qt5.**

## 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.31` at `/usr/bin/gtk-query-immodules-2.0`.
        Version Line:

            # Created by /usr/bin/gtk-query-immodules-2.0 from gtk+-2.24.31

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

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

    2.  gtk 3:

        Found `gtk-query-immodules` for gtk `3.22.7` at `/usr/bin/gtk-query-immodules-3.0`.
        Version Line:

            # Created by /usr/bin/gtk-query-immodules-3.0 from gtk+-3.22.7

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

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

3.  Gtk IM module cache:

    1.  gtk 2:

        Found immodules cache for gtk `2.24.31` at `/usr/lib/gtk-2.0/2.10.0/immodules.cache`.
        Version Line:

            # Created by /usr/bin/gtk-query-immodules-2.0 from gtk+-2.24.31

        **Failed to find fcitx in immodule cache at `/usr/lib/gtk-2.0/2.10.0/immodules.cache`**

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

    2.  gtk 3:

        Found immodules cache for gtk `3.22.7` at `/usr/lib/gtk-3.0/3.0.0/immodules.cache`.
        Version Line:

            # Created by /usr/bin/gtk-query-immodules-3.0 from gtk+-3.22.7

        **Failed to find fcitx in immodule cache at `/usr/lib/gtk-3.0/3.0.0/immodules.cache`**

        **Cannot find fcitx 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 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-imselector
            fcitx-ipc
            fcitx-keyboard
            fcitx-kimpanel-ui
            fcitx-notificationitem
            fcitx-pinyin
            fcitx-pinyin-enhance
            fcitx-punc
            fcitx-quickphrase
            fcitx-remote
            fcitx-spell
            fcitx-table
            fcitx-unicode
            fcitx-vk
            fcitx-x11
            fcitx-xim
            fcitx-xkb
            fcitx-xkbdbus

    2.  Found 1 disabled addons:

            fcitx-qw

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:    //I have uninstalled the sogou but nothing changes

        fcitx-keyboard-us
        sogoupinyin

2.  Default input methods:

    You have a keyboard input method "fcitx-keyboard-us" correctly added as your default input method.

# Log:
1.  `date`:

        Thu Feb 16 14:14:49 CST 2017

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

        total 0

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

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

#############################################################################################################
I have tried gsetting but failed in root and nothing , I don't know how to do it correctly.

➜  ~ gsettings set org.gnome.settings-daemon.plugins.xsettings overrides "{'Gtk/IMModule':<'fcitx'>}"          

(process:7430): dconf-WARNING **: failed to commit changes to dconf: The connection is closed
➜  ~ sudo -l gsettings set org.gnome.settings-daemon.plugins.xsettings overrides "{'Gtk/IMModule':<'fcitx'>}"  
/usr/bin/gsettings set org.gnome.settings-daemon.plugins.xsettings overrides {'Gtk/IMModule':<'fcitx'>}

#############################################################################################################
Forgive my poor English.


Thanks!

-------------------------------------
The only thing which I need is gtk.

pacman -S gtk2
pacman -S gtk3
pacman -S fcitx-gtk2

Last edited by oldz (2017-03-06 14:21:24)

Offline

#2 2017-02-16 08:13:26

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [SOLVED] my fcitx doesn't work

Please use code tags when pasting to the boards: https://wiki.archlinux.org/index.php/Co … s_and_code


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2017-02-16 08:29:37

oldz
Member
Registered: 2017-02-16
Posts: 4

Re: [SOLVED] my fcitx doesn't work

jasonwryan wrote:

Please use code tags when pasting to the boards: https://wiki.archlinux.org/index.php/Co … s_and_code

sorry

Offline

#4 2017-02-19 01:10:21

oldz
Member
Registered: 2017-02-16
Posts: 4

Re: [SOLVED] my fcitx doesn't work

Help!

Offline

#5 2017-03-06 14:15:54

oldz
Member
Registered: 2017-02-16
Posts: 4

Re: [SOLVED] my fcitx doesn't work

Today my friend told me he had the same problem. He found there are no gtk2, gtk3 and fcitx-gtk2 so he decided to install these. Fortunately, he has solved it successfully.
This is the way what he used to solve this problem and now I have solved it too.

pacman -S gtk2
pacman -S gtk3
pacman -S fcitx-gtk2

Thanks for you who thinks for me!

Offline

#6 2017-03-06 14:41:35

Docbroke
Member
From: India
Registered: 2015-06-13
Posts: 1,433

Re: [SOLVED] my fcitx doesn't work

If you are not using gtk2 based applications, there is no point in installing fcitx-gtk2.
For which applications you are using fcitx?  Depending on with which you want to use fcitx, you can select proper module to install. See here file:///usr/share/doc/arch-wiki/html/en/Fcitx.html#Input_method_module for available modules.

Offline

Board footer

Powered by FluxBB