You are not logged in.

#1 2022-07-28 00:57:52

ShwStone
Member
Registered: 2022-07-27
Posts: 11

My fcitx5 cannot autostart

I am running fcitx5 as input method on the following environment:
```
Operating System: Arch Linux
KDE Plasma Version: 5.25.3
KDE Frameworks Version: 5.96.0
Qt Version: 5.15.5
Kernel Version: 5.18.14-arch1-1 (64-bit)
Graphics Platform: X11
Processors: 4 × Intel® Core™ i5-4210U CPU @ 1.70GHz
Memory: 3.5 GiB of RAM
Graphics Processor: Mesa Intel® HD Graphics 4400
Manufacturer: LENOVO
Product Name: 20AMA33WCD
System Version: ThinkPad X240
```
After I installed some number of kde family packages, I deleted the amd-ucode package by mistake and the system wouldn't boot, so I went into the system using the installer and reinstalled amd-ucode with pacstrap.
After this, when I rebooted the system again, I found that fcitx5 did not start automatically. So I did `cp /usr/share/applications/org.fcitx.Fcitx5.desktop ~/.config/autostart/` , but still no effect.
Strangely, when I log out and log back in without restarting my computer, fcitx5 restarts again. But every time I restart, fcitx5 doesn't work, and it can only be solved by manually opening or logging out once.
I looked at fcitx5-diagnose
```
# system message:
1. `uname -a`:

        Linux arch 5.18.14-arch1-1 #1 SMP PREEMPT_DYNAMIC Sat, 23 Jul 2022 11:46:17 +0000 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
        BUILD_ID=rolling
        ANSI_COLOR="38;2;23;147;209"
        HOME_URL="https://archlinux.org/"
        DOCUMENTATION_URL="https://wiki.archlinux.org/"
        SUPPORT_URL="https://bbs.archlinux.org/"
        BUG_REPORT_URL="https://bugs.archlinux.org/"
        LOGO=archlinux-logo

5. Desktop Environment:

    The desktop environment is `kde`.

6. XDG session type:

        XDG_SESSION_TYPE='x11'

7. Bash version:

        BASH_VERSION='5.1.16(1)-release'

# surroundings:
1. DISPLAY:

        DISPLAY=':0'


        WAYLAND_DISPLAY=''

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

    2. `xprop`:

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

3. Locale:

    1. All available locales:

            C
            C.UTF-8
            en_US.utf8
            POSIX
            zh_CN.utf8

    2. Current locale:

            LANG=zh_CN.UTF-8
            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. Directory:

    1. Home directory:

            /home/shwstone

    2. `${XDG_CONFIG_HOME}`:

        The environment variable `XDG_CONFIG_HOME` is not set.

        The current value of `XDG_CONFIG_HOME` is `~/.config` (`/home/shwstone/.config`).

    3. Fcitx5 setup directory:

        The current fcitx5 settings directory is `~/.config/fcitx5` (`/home/shwstone/.config/fcitx5`).

5. Current user:

    The script is run as shwstone (1000).

# Fcitx status:
1. Executable file:

    Found fcitx5 in `/usr/bin/fcitx5`.

2. Version:

    Fcitx version: `5.0.18`

3. Process:

    **Fcitx5 is not running. **
    **Please visit the [Getting Started Guide](http://fcitx-im.org/wiki/Beginner%27s_Guide/en-us) page for the configuration link for your distribution to see how to configure the autostart of fcitx5.**

# Fcitx configuration interface:
1. Configuration tool package:

    Found fcitx5-configtool in `/usr/bin/fcitx5-configtool`.

2. Qt configuration interface:

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

3. KDE configuration interface:

    Found the kcm module for fcitx5.

        kcm_fcitx5 - configure input method

# Front-end settings:
## Xim:
1. `${XMODIFIERS}`:

    The environment variable XMODIFIERS has been correctly set to "@im=fcitx".
    The Xim service name obtained from environment variables is fcitx.

2. XIM_SERVERS on the root window:

    The name of the Xim service is the same as set in the environment variable.

## Qt:
1. qt4 - `${QT4_IM_MODULE}`:

    The environment variable QT_IM_MODULE has been correctly set to "fcitx".

2. qt5 - `${QT_IM_MODULE}`:

    The environment variable QT_IM_MODULE has been correctly set to "fcitx".

3. Qt input method module file:

    Unknown fcitx qt module found: `/usr/lib/qt/plugins/kcms/kcm_fcitx5.so`.
    Found the qt input method module of fcitx5: `/usr/lib/qt/plugins/platforminputcontexts/libfcitx5platforminputcontextplugin.so`.
    Found the qt6 input method module of fcitx5: `/usr/lib/qt6/plugins/platforminputcontexts/libfcitx5platforminputcontextplugin.so`.
    Found the fcitx5 qt5 module: `/usr/lib/fcitx5/qt5/libfcitx-quickphrase-editor5.so`.
    Found unknown fcitx qt module: `/usr/lib/office6/qt/plugins/platforminputcontexts/libfcitxplatforminputcontextplugin.so`.
    **Unable to find the fcitx5 input method module for Qt4. **

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

    The environment variable GTK_IM_MODULE has been correctly set to "fcitx".

2. `gtk-query-immodules`:

    1. gtk 2:

        Found `gtk-query-immodules` for gtk `2.24.33` in `/usr/bin/gtk-query-immodules-2.0`.
        Version line:

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

        Found fcitx5 input method module for gtk `2.24.33`.

            "/usr/lib/gtk-2.0/2.10.0/immodules/im-fcitx5.so"
            "fcitx" "Fcitx5 (Flexible Input Method Framework5)" "fcitx5" "/usr/locale" "ja:ko:zh:*"
            "fcitx5" "Fcitx5 (Flexible Input Method Framework5)" "fcitx5" "/usr/locale" "ja:ko:zh:*"

    2. gtk 3:

        Found `gtk-query-immodules-3.0` for gtk `3.24.34` in `/usr/bin/gtk-query-immodules-3.0`
query-immodules`.
        Version line:

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

        Found the fcitx5 input method module for gtk `3.24.34`.

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

3. Gtk input method module cache:

    1. gtk 2:

        Found the input method module cache for gtk `2.24.33` in `/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.33

        Found fcitx5 input method module for gtk `2.24.33`.

            "/usr/lib/gtk-2.0/2.10.0/immodules/im-fcitx5.so"
            "fcitx" "Fcitx5 (Flexible Input Method Framework5)" "fcitx5" "/usr/locale" "ja:ko:zh:*"
            "fcitx5" "Fcitx5 (Flexible Input Method Framework5)" "fcitx5" "/usr/locale" "ja:ko:zh:*"

    2. gtk 3:

        Found the input method module cache for gtk `3.24.34` in `/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.34

        Found the fcitx5 input method module for gtk `3.24.34`.

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

    3. gtk 4:

        **Cannot find input method module cache for gtk 4**

        **Unable to find the fcitx5 input method module for gtk 4 in the cache. **

4. Gtk input method module file:

    1. gtk 2:

        All found Gtk 2 input method module files are present.

    2. gtk 3:

        All found Gtk 3 input method module files are present.

    3. gtk 4:

        All found Gtk 4 input method module files are present.

# Configuration:
## Fcitx plugin:
1. Plugin configuration file directory:

    Found the plugin configuration directory of fcitx5: `/usr/share/fcitx5/addon`.

2. Plugin list:

    1. Found 28 enabled plugins:

            Simplified and Traditional Chinese Translation 5.0.14
            Classic User Interface 5.0.18
            Clipboard 5.0.18
            Cloud Pinyin 5.0.14
            DBus 5.0.18
            DBus Frontend 5.0.18
            Emoji 5.0.18
            Fcitx4 Frontend 5.0.18
            Full width character 5.0.14
            IBus Frontend 5.0.18
            Lua IME API 5.0.9
            Input method selector 5.0.18
            Keyboard 5.0.18
            KDE Input Method Panel 5.0.18
            Lua Addon Loader 5.0.9
            Status Notifier 5.0.18
            Notification 5.0.18
            Pinyin 5.0.14
            Extra Pinyin functionality 5.0.14
            Punctuation 5.0.14
            Quick Phrase 5.0.18
            Spell 5.0.18
            Table 5.0.14
            Unicode 5.0.18
            Wayland 5.0.18
            Wayland Input method frontend 5.0.18
            XCB 5.0.18
            X Input Method Frontend 5.0.18

    2. Found 0 disabled plugins:

3. Plugin library:

    All required libraries for plugins are found.

4. User Interface:

    Found 2 enabled UI plugins:

        Classic User Interface
        KDE Input Method Panel

## Input:
1. `/home/shwstone/.config/fcitx5/profile`:

        [Groups/0]
        # Group Name
        Name=default
        # Layout
        Default Layout=us
        # Default Input Method
        DefaultIM=pinyin

        [Groups/0/Items/0]
        # Name
        Name=keyboard-us
        # Layout
        Layout=

        [Groups/0/Items/1]
        # Name
        Name=pinyin
        # Layout
        Layout=

        [GroupOrder]
        0=default

# log:
1. `date`:

        Thu Jul 28 2022 08:50:29 CST

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

    `/home/shwstone/.config/fcitx5/crash.log` not found.

**WARNING: The output of fcitx5-diagnose may contain sensitive information including distribution name, kernel version, running program name, etc. **

**While this information is helpful for developers to diagnose issues, please review and remove as necessary the corresponding information before posting it publicly to an online site. **
```
I tried opening http://fcitx-im.org/wiki/Beginner%27s_Guide/ and found out that this is a non-existent page.
what should I do?
PS: Please forgive my bad English

Offline

#2 2022-07-28 07:03:46

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,506

Re: My fcitx5 cannot autostart

PS: Please forgive my bad English

We will if you edit your post and use "code" tags instead of (not supported) markdown wink
https://bbs.archlinux.org/help.php#bbcode

I found that fcitx5 did not start automatically.

isn't the same as

But every time I restart, fcitx5 doesn't work

Check

ps aux |  grep fcitx

on whether there's an fcitx5 process when it "doesn't work".

it can only be solved by manually opening or logging out once

By that symptom I suspect the GUI doesn't work, maybe relies on the compositor and the most common cause for any problem w/ that behavioral pattern is that the GPU is late.
=> Try https://wiki.archlinux.org/title/Kernel … _KMS_start

Offline

#3 2022-07-28 23:02:09

ShwStone
Member
Registered: 2022-07-27
Posts: 11

Re: My fcitx5 cannot autostart

I'm sure you are right.
It works. Thanks a lot.

PS: Is this "code tag"?

abcd

Offline

#4 2022-07-29 00:32:53

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,665

Re: My fcitx5 cannot autostart

ShwStone wrote:

Is this "code tag"?

abcd

Perfect.

Code tags are nice because they use a monospaced font and provide scroll bars.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#5 2022-07-29 07:00:18

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,506

Re: My fcitx5 cannot autostart

It works. Thanks a lot.

Also please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

Offline

Board footer

Powered by FluxBB