You are not logged in.

#1 2020-03-14 21:35:31

Raymo111
Member
Registered: 2019-08-27
Posts: 28

fcitx ctrl+space not working on KDE

So I tried doing a clean install, but it's still broken.
Fcitx-related packages:

fcitx
fcitx-googlepinyin
fcitx-im (All)
kcm-fcitx

Here is my

~/.config/fcitx/config

:

[Hotkey]
# Trigger Input Method
#TriggerKey=CTRL_SPACE
# Use extra trigger key only after using it to inactivate
# Available Value:
# True False
UseExtraTriggerKeyOnlyWhenUseItToInactivate=False
# Extra key for trigger input method
# Available Value:
# R_CTRL
# R_SHIFT
# L_SHIFT
# L_CTRL
# ALT_L_SHIFT
# ALT_R_SHIFT
# CTRL Both
# SHIFT Both
# L_ALT
# R_ALT
# ALT Both
# Left Super
# Right Super
# Super Both
# Ctrl+Left Super
# Ctrl+Right Super
# Super+Left Ctrl
# Super+Right Ctrl
# Disabled
# Custom
SwitchKey=Disabled
# Custom switch key
#CustomSwitchKey=
# Activate input method
#ActivateKey=
# Inactivate Input Method
#InactivateKey=
# Enable Hotkey to scroll Between Input Method
# Available Value:
# True False
#IMSwitchKey=True
# Include Inactivate when scrolling between Input Method
# Available Value:
# True False
#IMSwitchIncludeInactive=False
# Scroll between Input Method
# Available Value:
# CTRL_SHIFT
# ALT_SHIFT
# CTRL_SUPER
# ALT_SUPER
IMSwitchHotkey=ALT_SHIFT
# Reload configuration
ReloadConfig=
# Interval of Two Key Input
#TimeInterval=250
# Switching Virtual Keyboard
VKSwitchKey=
# Switching Remind Mode
#RemindSwitchKey=
# Switching Full Width Character Mode
#FullWidthSwitchKey=
# Switch Full Width Punc Mode
PuncSwitchKey=
# Prev Page
PrevPageKey=UP
# Next Page
NextPageKey=DOWN
# Choose Second and Third Candidate Word
#SecondThirdCandWordKey=
# Saving All Config and Input History
SaveAllKey=
# Switch Embedded Preedit
SwitchPreedit=
# Previous Candidate Word
#PrevWord=SHIFT_TAB
# Next Candidate Word
#NextWord=TAB

[Program]
# Seconds sleep before fcitx really start
#DelayStart=0
# Share State Among Window
# Available Value:
# No
# All
# PerProgram
ShareStateAmongWindow=All
# Default Input Method State
# Available Value:
# Inactive
# Active
#DefaultInputMethodState=Inactive

[Output]
# Type half width Punc After a Number
# Available Value:
# True False
#HalfPuncAfterNumber=True
# Disable Paging in Remind Mode
# Available Value:
# True False
#RemindModeDisablePaging=True
# Commit when toggle state
# Available Value:
# True False
#SendTextWhenSwitchEng=True
# Candidate Word Number
#CandidateWordNumber=5
# Give the tips of Phrase
# Available Value:
# True False
#PhraseTips=True
# Do not commit preedit text when unfocus a window
# Available Value:
# True False
#DontCommitPreeditWhenUnfocus=False

[Appearance]
# Show Input Method Hint After Input method changed
# Available Value:
# True False
#ShowInputWindowAfterTriggering=True
# Show Input Method Hint After Input method changed and Focus in
# Available Value:
# True False
#ShowInputWindowWhenFocusIn=False
# Input Method Hint will be only shown when state is active
# Available Value:
# True False
#ShowInputWindowOnlyWhenActive=True
# Show Input Speed
# Available Value:
# True False
#ShowInputSpeed=False
# Show Version
# Available Value:
# True False
#ShowVersion=False
# Do not show input window if there is only preedit string
# Available Value:
# True False
#HideInputWindowWhenOnlyPreeditString=False
# Do not show input window if there is only one candidate and preedit
# Available Value:
# True False
#HideInputWindowWhenOnlyOneCandidate=False

And fcitx-diagnose gives:

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

        Linux ARCHANGEL 5.5.9-arch1-2 #1 SMP PREEMPT Thu, 12 Mar 2020 23:01:33 +0000 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"
        PRETTY_NAME="Arch Linux"
        ID=arch
        BUILD_ID=rolling
        ANSI_COLOR="0;36"
        HOME_URL="https://www.archlinux.org/"
        DOCUMENTATION_URL="https://wiki.archlinux.org/"
        SUPPORT_URL="https://bbs.archlinux.org/"
        BUG_REPORT_URL="https://bugs.archlinux.org/"
        LOGO=archlinux

6.  Desktop Environment:

    Desktop environment is `kde`.

7.  Bash Version:

        BASH_VERSION='5.0.16(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(pc101)"     };
            };

    2.  `xprop`:

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

3.  Locale:

    1.  All locale:

            C
            en_CA.utf8
            fr_CA.utf8
            POSIX
            zh_CN.gb18030

    2.  Current locale:

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

4.  Directories:

    1.  Home:

            /home/raymo

    2.  `${XDG_CONFIG_HOME}`:

        Environment variable `XDG_CONFIG_HOME` is not set.

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

    3.  Fcitx Settings Directory:

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

5.  Current user:

    The script is run as raymo (1000).

# Fcitx State:
1.  executable:

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

2.  version:

    Fcitx version: `4.2.9.7`

3.  process:

    Found 2 fcitx processes:

           4468 fcitx
           4477 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.159`.

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

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

    **Config GUI for gtk3 not found.**

4.  Config GUI for kde:

    **`kcmshell4` not found.**

    **Cannot find a GUI config tool, please install one of `kcm-fcitx`, `fcitx-config-gtk2`, or `fcitx-config-gtk3`.**

# 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: QT_IM_MODULE](http://fcitx-im.org/wiki/Input_method_related_environment_variables#QT_IM_MODULE).**

3.  Qt IM module files:

    Found fcitx qt module: `/usr/lib/fcitx/qt/libfcitx-quickphrase-editor5.so`.
    Found unknown fcitx qt module: `/usr/lib/qt/plugins/kcm_fcitx.so`.
    Found fcitx im module for Qt5: `/usr/lib/qt/plugins/platforminputcontexts/libfcitxplatforminputcontextplugin.so`.
    **Cannot find fcitx input method module for Qt4.**

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

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

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

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

        Found fcitx im modules for gtk `2.24.32`.

            "/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:*" 

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

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

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

    2.  gtk 3:

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

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

        Found fcitx im modules for gtk `3.24.14`.

            "/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.32` 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.32

        Found fcitx im modules for gtk `2.24.32`.

            "/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:*" 

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

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

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

    2.  gtk 3:

        Found immodules cache for gtk `3.24.14` 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.24.14

        Found fcitx im modules for gtk `3.24.14`.

            "/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 27 enabled addons:

            fcitx-autoeng
            fcitx-chttrans
            fcitx-classic-ui
            fcitx-clipboard
            fcitx-dbus
            fcitx-freedesktop-notify
            fcitx-fullwidth-char
            fcitx-googlepinyin
            fcitx-imselector
            fcitx-ipc
            fcitx-ipcportal
            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 3 enabled input methods:

        fcitx-keyboard-ca-eng
        fcitx-keyboard-us
        googlepinyin

2.  Default input methods:

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

# Log:
1.  `date`:

        Sat 14 Mar 2020 05:36:11 PM EDT

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

        total 4
        -rw-r--r-- 1 raymo users 44 Mar 14 16:49 crash.log

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

        fcitx: BadWindow (invalid Window parameter)

Offline

#2 2020-03-14 23:03:25

frostschutz
Member
Registered: 2013-11-15
Posts: 1,652

Re: fcitx ctrl+space not working on KDE

install fcitx-{gtk2,gtk3,qt5} and set the environment variables system-wide (has to be set for the processes where you want it to work)

Offline

#3 2020-03-14 23:45:55

Raymo111
Member
Registered: 2019-08-27
Posts: 28

Re: fcitx ctrl+space not working on KDE

@frostschutz Those packages are installed, fcitx-im provides them. Which environment variables did you mean?

Offline

#4 2020-03-15 01:27:24

frostschutz
Member
Registered: 2013-11-15
Posts: 1,652

Re: fcitx ctrl+space not working on KDE

the ones listed in that diagnose output you yourself posted ("please set environment variable ...")

Offline

#5 2020-03-15 01:38:06

Raymo111
Member
Registered: 2019-08-27
Posts: 28

Re: fcitx ctrl+space not working on KDE

@frostschutz I tried putting those into ~/.xprofile and ~/.xinitrc. That message is still shown.

Offline

Board footer

Powered by FluxBB