Re: Cannot switch to Chinese Input Method with fcitx after upgrading to Debian Buster

2017-09-09 Thread 慕 冬亮


On 09/07/2017 02:01 PM, 慕 冬亮 wrote:

Hi all,

Yesterday I upgraded my Debian Stretch to Debian Buster. Something unexpected 
happens. I cannot switch to fcitx-googlepinyin/sunpinyin with fcitx.

In Debian Stretch, if I click "Ctrl+Space", it will change to 
fcitx-googlepinyin. And then I can type Chinese. However, in buster, when I 
click
"Ctrl+Space", there is no other input method shown. Only English could be typed.


I google this problem and find some interesting answers in the archlinux bbs.
Because Debian changes the backend of Gnome Shell from X.org to Wayland, 
Wayland does not directly support fcitx(details in 
https://bbs.archlinux.org/viewtopic.php?id=218409) due to profile problem.

The solution is easy :
Just add the following lines into `/etc/profile`. Don't use `~/.bashrc`. It is 
not working in my system.

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

I run "fcitx-diagnose", but cannot understand the result. Is there anyone who 
encounters the same problem with me? Do you have any solution?





--

My best regards to you.

 No System Is Safe!
 Dongliang Mu


Cannot switch to Chinese Input Method with fcitx after upgrading to Debian Buster

2017-09-07 Thread 慕 冬亮
Hi all,

Yesterday I upgraded my Debian Stretch to Debian Buster. Something unexpected 
happens. I cannot switch to fcitx-googlepinyin/sunpinyin with fcitx.

In Debian Stretch, if I click "Ctrl+Space", it will change to 
fcitx-googlepinyin. And then I can type Chinese. However, in buster, when I 
click
"Ctrl+Space", there is no other input method shown. Only English could be typed.

I run "fcitx-diagnose", but cannot understand the result. Is there anyone who 
encounters the same problem with me? Do you have any solution?


-- 

My best regards to you.

  No System Is Safe!
  Dongliang Mu

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

Linux debian 4.12.0-1-amd64 #1 SMP Debian 4.12.6-1 (2017-08-12) x86_64 
GNU/Linux

2.  `lsb_release -a`:

No LSB modules are available.
Distributor ID: Debian
Description:Debian GNU/Linux testing (buster)
Release:testing
Codename:   buster

3.  `lsb_release -d`:

Description:Debian GNU/Linux testing (buster)

4.  `/etc/lsb-release`:

`/etc/lsb-release` not found.

5.  `/etc/os-release`:

PRETTY_NAME="Debian GNU/Linux buster/sid"
NAME="Debian GNU/Linux"
ID=debian
HOME_URL="https://www.debian.org/;
SUPPORT_URL="https://www.debian.org/support;
BUG_REPORT_URL="https://bugs.debian.org/;

6.  Desktop Environment:

Desktop environment is `gnome3`.

7.  Bash Version:

BASH_VERSION='4.4.12(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

2.  Current locale:

LANG=en_US.UTF-8
LANGUAGE=
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/mdl

2.  `${XDG_CONFIG_HOME}`:

Environment variable `XDG_CONFIG_HOME` is not set.

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

3.  Fcitx Settings Directory:

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

5.  Current user:

The script is run as mdl (1000).

# Fcitx State:
1.  executable:

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

2.  version:

Fcitx version: `4.2.9.1`

3.  process:

Found 2 fcitx processes:

 2920 fcitx
 2930 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.133`.

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

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

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