You are not logged in.

#1 2015-04-13 17:52:49

vanitas
Member
From: Guangzhou, China
Registered: 2014-05-31
Posts: 16

Fcitx not work in Gnome 3.16

I upgraded my official computer to Gnome 3.16 several days ago, resulting in that fcitx not worked in gnome-terminal, nautilus and gedit any more, but it still works in firefox and Activities Overview. Downgrading gnome-terminal to 3.14 not help.

(More: I installed gnome-terminal-fedora after upgrading to Gnome 3.16, since gnome-terminal 3.16 removed the "Use dark theme variant" feature. I first met the problem after I installed gnome-terminal-fedora. I'm not sure whether the problem exists before it.)

I tried everything I could find but nothing worked. Finally I reinstalled Arch (a totally fresh installation), but still not worked.

Fcitx in my personal computer works properly. Before upgrading my personal computer to Gnome 3.16, I edited /etc/pacman.conf to ignore upgrading gnome-terminal.

Output of fcitx-diagnose in the two computers is the same. And all the configuration is almost the same, too. It's quite strange.

Anyone can help me?


~/.xprofile:

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

The following code has been executed:

gsettings set org.gnome.settings-daemon.plugins.keyboard active false

Output of fcitx-diagnose:

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

        Linux arch 3.19.3-3-ARCH #1 SMP PREEMPT Wed Apr 8 14:10:00 CEST 2015 x86_64 GNU/Linux

2.  `lsb_release -a`:

        LSB Version:    1.4
        Distributor ID: Arch
        Description:    Arch Linux
        Release:    rolling
        Codename:   n/a

3.  `lsb_release -d`:

        Description:    Arch Linux

4.  `/etc/lsb-release`:

        LSB_VERSION=1.4
        DISTRIB_ID=Arch
        DISTRIB_RELEASE=rolling
        DISTRIB_DESCRIPTION="Arch Linux"

5.  `/etc/os-release`:

        NAME="Arch Linux"
        ID=arch
        PRETTY_NAME="Arch Linux"
        ANSI_COLOR="0;36"
        HOME_URL="https://www.archlinux.org/"
        SUPPORT_URL="https://bbs.archlinux.org/"
        BUG_REPORT_URL="https://bugs.archlinux.org/"

6.  Desktop Environment:

    Desktop environment is `gnome3`.

# Environment:
1.  DISPLAY:

        DISPLAY=':1'

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(pc104)" };
            };

    2.  `xprop`:

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

3.  Locale:

    1.  All locale:

            C
            en_US.utf8
            POSIX
            zh_CN
            zh_CN.gb2312
            zh_CN.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:

            /home/vanitas

    2.  `${XDG_CONFIG_HOME}`:

        Environment variable `XDG_CONFIG_HOME` is not set.

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

    3.  Fcitx Settings Directory:

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

5.  Current user:

    The script is run as vanitas (1000).

# Fcitx State:
1.  executable:

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

2.  version:

    Fcitx version: `4.2.8.5`

3.  process:

    Found 2 fcitx processes:

          643 fcitx
          652 fcitx-dbus-watc

4.  `fcitx-remote`:

    `fcitx-remote` works properly.

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

    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 fcitx im module for Qt4: `/usr/lib/qt4/plugins/inputmethods/qtim-fcitx.so`.
    Found fcitx qt module: `/usr/lib/fcitx/qt/libfcitx-quickphrase-editor.so`.
    **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.27` at `/usr/bin/gtk-query-immodules-2.0`.
        Version Line:

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

        Found fcitx im modules for gtk `2.24.27`.

            "/usr/lib/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 `gtk-query-immodules` for gtk `3.16.1` at `/usr/bin/gtk-query-immodules-3.0`.
        Version Line:

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

        Found fcitx im modules for gtk `3.16.1`.

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

3.  Gtk IM module cache:

    1.  gtk 2:

        Found immodules cache for gtk `2.24.27` 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.27

        Found fcitx im modules for gtk `2.24.27`.

            "/usr/lib/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.16.1` 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.16.1

        Found fcitx im modules for gtk `3.16.1`.

            "/usr/lib/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 26 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-sunpinyin
            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:

        fcitx-keyboard-us
        sunpinyin

2.  Default input methods:

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

# Log:
1.  `date`:

        Tue Apr 14 01:50:31 CST 2015

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

        total 0

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

Edit:

Someone has found a workaround: run applications through Alt + F2.
It works for nautilus and gedit.
As for gnome-terminal, open Alt + F2 twice and run one line of code at a time:

/usr/lib/gnome-terminal/gnome-terminal-server --app-id my.test.terminal
gnome-terminal --app-id my.test.terminal

It seems like a bug of Gnome, I've filed a bug in Gnome Bugzilla: https://bugzilla.gnome.org/show_bug.cgi?id=747825

Last edited by vanitas (2015-04-14 07:35:16)

Offline

#2 2015-04-14 12:38:53

vanitas
Member
From: Guangzhou, China
Registered: 2014-05-31
Posts: 16

Re: Fcitx not work in Gnome 3.16

Some other finds that using kdm and lightdm would not meet the problem, so the problem should be caused by gdm 3.16.0.

Before gdm solves the problem, there are three workarounds now:

1. Run applications through Alt + F2
2. Use kdm, lightdm or other display managers instead of gdm
3. Downgrade gdm to 3.14. Download gdm 3.14

Last edited by vanitas (2015-04-14 12:46:42)

Offline

#3 2015-05-17 02:54:04

cherrot
Member
From: Beijing, China
Registered: 2014-10-22
Posts: 3
Website

Re: Fcitx not work in Gnome 3.16

According to Emmanuele Bassi's comment of this bug https://bugzilla.gnome.org/show_bug.cgi?id=747825#c6:

In this particular case, GNOME allows you to replace the GTK_IM_MODULE environment variable with the "overrides" GSettings key in the org.gnome.settings-daemon.plugins.xsettings schema, e.g.:

  gsettings set \
    org.gnome.settings-daemon.plugins.xsettings overrides \
    "{'Gtk/IMModule':'your-im-module'}"

Which will be used even by DBus activated applications.

So, the simplest solution would be:

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

Offline

Board footer

Powered by FluxBB