お知らせ

  • 利用規約を守って投稿してください。また、よくある質問および投稿の手引きも参照してください。
  • メッセージの投稿にはアカウントが必要です。未登録の方は、ユーザ登録ページからアカウントを作成することができます。

#1 2022-02-11 23:15:45

Beats
メンバ
登録日: 2015-03-14

fcitxが自動で起動しません

こんにちは、Beatsと申します。
久々にManjaroからUbuntuに戻ってきたのですが、どうしてもfcitxの自動起動がうまくいきません。
と言っても、以前もfcitx-autostartとか一度していたら自動で起動したようなというような曖昧な知識しか持ち合わせていません。
Ubuntuは日本語版ではないUbuntu 20.04.3 LTSを使っています。
表示も英語のままでfcitx-mozcをインストールして/etc/environmentにGTK_IM_MODULE、QT_IM_MODULE、XMODIFIERSなどの設定を書き込んでいます。
今現在はコマンドラインでfcitx-autostartで起動して、日本語を書き込んでいます。
一応、im-configやLanguage Supportアプリを実行してみましたが、自動で起動はしませんでした。
以下はfcitx-diagnoseの出力結果です。

コード:

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

        Linux x230 5.13.0-28-generic #31~20.04.1-Ubuntu SMP Wed Jan 19 14:08:10 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

2.  `lsb_release -a`:

        No LSB modules are available.
        Distributor ID:    Ubuntu
        Description:    Ubuntu 20.04.3 LTS
        Release:    20.04
        Codename:    focal

3.  `lsb_release -d`:

        Description:    Ubuntu 20.04.3 LTS

4.  `/etc/lsb-release`:

        DISTRIB_ID=Ubuntu
        DISTRIB_RELEASE=20.04
        DISTRIB_CODENAME=focal
        DISTRIB_DESCRIPTION="Ubuntu 20.04.3 LTS"

5.  `/etc/os-release`:

        NAME="Ubuntu"
        VERSION="20.04.3 LTS (Focal Fossa)"
        ID=ubuntu
        ID_LIKE=debian
        PRETTY_NAME="Ubuntu 20.04.3 LTS"
        VERSION_ID="20.04"
        HOME_URL="https://www.ubuntu.com/"
        SUPPORT_URL="https://help.ubuntu.com/"
        BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
        PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
        VERSION_CODENAME=focal
        UBUNTU_CODENAME=focal

6.  Desktop Environment:

    Desktop environment is `gnome3`.

7.  Bash Version:

        BASH_VERSION='5.0.17(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)+capslock(ctrl_modifier)"    };
                xkb_geometry  { include "pc(pc105)"    };
            };

    2.  `xprop`:

            _XKB_RULES_NAMES(STRING) = "evdev", "pc105", "us,us", ",", "caps:ctrl_modifier"

3.  Locale:

    1.  All locale:

            C
            C.UTF-8
            en_AG
            en_AG.utf8
            en_AU.utf8
            en_BW.utf8
            en_CA.utf8
            en_DK.utf8
            en_GB.utf8
            en_HK.utf8
            en_IE.utf8
            en_IL
            en_IL.utf8
            en_IN
            en_IN.utf8
            en_NG
            en_NG.utf8
            en_NZ.utf8
            en_PH.utf8
            en_SG.utf8
            en_US.utf8
            en_ZA.utf8
            en_ZM
            en_ZM.utf8
            en_ZW.utf8
            ja_JP.utf8
            POSIX

    2.  Current locale:

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

4.  Directories:

    1.  Home:

            /home/aki

    2.  `${XDG_CONFIG_HOME}`:

        Environment variable `XDG_CONFIG_HOME` is not set.

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

    3.  Fcitx Settings Directory:

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

5.  Current user:

    The script is run as aki (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:

           1853 fcitx
           1865 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.107`.

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

# 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 Qt5: `/lib/x86_64-linux-gnu/qt5/plugins/platforminputcontexts/libfcitxplatforminputcontextplugin.so`.
    Found fcitx qt module: `/lib/x86_64-linux-gnu/fcitx/qt/libfcitx-quickphrase-editor5.so`.
    **Cannot find fcitx input method module for Qt4.**

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

    Environment variable GTK_IM_MODULE is set to "fcitx" correctly.

2.  `gtk-query-immodules`:

    1.  gtk 2:

        **Cannot find `gtk-query-immodules` for gtk 2**

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

    2.  gtk 3:

        **Cannot find `gtk-query-immodules` for gtk 3**

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

3.  Gtk IM module cache:

    1.  gtk 2:

        Found immodules cache for gtk `2.24.32` at `/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/immodules.cache`.
        Version Line:

            # Created by /usr/lib/x86_64-linux-gnu/libgtk2.0-0/gtk-query-immodules-2.0 from gtk+-2.24.32

        Found fcitx im modules for gtk `2.24.32`.

            "/usr/lib/x86_64-linux-gnu/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.24.20` at `/lib/x86_64-linux-gnu/gtk-3.0/3.0.0/immodules.cache`.
        Version Line:

            # Created by /usr/lib/x86_64-linux-gnu/libgtk-3-0/gtk-query-immodules-3.0 from gtk+-3.24.20

        Found fcitx im modules for gtk `3.24.20`.

            "/usr/lib/x86_64-linux-gnu/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 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-ipcportal
            fcitx-keyboard
            fcitx-kimpanel-ui
            fcitx-lua
            fcitx-mozc
            fcitx-notificationitem
            fcitx-punc
            fcitx-quickphrase
            fcitx-remote
            fcitx-spell
            fcitx-unicode
            fcitx-vk
            fcitx-x11
            fcitx-xim
            fcitx-xkb
            fcitx-xkbdbus

    2.  Found 0 disabled addons:

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
        mozc

2.  Default input methods:

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

# Log:
1.  `date`:

        2022年  2月 11日 金曜日 23:02:12 JST

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

        total 0

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

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

もし標準的な自動起動がUbuntuにあれば、教えていただけると幸いです。
よろしくお願いいたします。

オフライン

 

#2 2022-02-11 23:24:29

Beats
メンバ
登録日: 2015-03-14

Re: fcitxが自動で起動しません

いきなり投稿し忘れておりました。
下記はfcitx-autostart実行時の標準エラーです。
行末にエラーが出ていますが、問題のないエラーと考えていますが...

コード:

Beats@x230:~$ (INFO-2357 addon.c:151) Load Addon Config File:fcitx-autoeng.conf
(INFO-2357 addon.c:151) Load Addon Config File:fcitx-chttrans.conf
(INFO-2357 addon.c:151) Load Addon Config File:fcitx-clipboard.conf
(INFO-2357 addon.c:151) Load Addon Config File:fcitx-fullwidth-char.conf
(INFO-2357 addon.c:151) Load Addon Config File:fcitx-imselector.conf
(INFO-2357 addon.c:151) Load Addon Config File:fcitx-ipcportal.conf
(INFO-2357 addon.c:151) Load Addon Config File:fcitx-keyboard.conf
(INFO-2357 addon.c:151) Load Addon Config File:fcitx-punc.conf
(INFO-2357 addon.c:151) Load Addon Config File:fcitx-quickphrase.conf
(INFO-2357 addon.c:151) Load Addon Config File:fcitx-remote-module.conf
(INFO-2357 addon.c:151) Load Addon Config File:fcitx-spell.conf
(INFO-2357 addon.c:151) Load Addon Config File:fcitx-unicode.conf
(INFO-2357 addon.c:151) Load Addon Config File:fcitx-dbus.conf
(INFO-2357 addon.c:151) Load Addon Config File:fcitx-freedesktop-notify.conf
(INFO-2357 addon.c:151) Load Addon Config File:fcitx-ipc.conf
(INFO-2357 addon.c:151) Load Addon Config File:fcitx-kimpanel-ui.conf
(INFO-2357 addon.c:151) Load Addon Config File:fcitx-lua.conf
(INFO-2357 addon.c:151) Load Addon Config File:fcitx-vk.conf
(INFO-2357 addon.c:151) Load Addon Config File:fcitx-x11.conf
(INFO-2357 addon.c:151) Load Addon Config File:fcitx-xim.conf
(INFO-2357 addon.c:151) Load Addon Config File:fcitx-xkb.conf
(INFO-2357 addon.c:151) Load Addon Config File:fcitx-xkbdbus.conf
(INFO-2357 addon.c:151) Load Addon Config File:fcitx-mozc.conf
(INFO-2357 addon.c:151) Load Addon Config File:fcitx-classic-ui.conf
(INFO-2357 addon.c:151) Load Addon Config File:fcitx-notificationitem.conf
(ERROR-2357 ime.c:432) fcitx-keyboard-in-tel-kagapa already exists
(ERROR-2357 ime.c:432) fcitx-keyboard-cm-mmuock already exists

オフライン

 

#3 2022-02-12 06:57:42

redred
メンバ
登録日: 2020-05-27

Re: fcitxが自動で起動しません

>Ubuntuは日本語版ではないUbuntu 20.04.3 LTSを使っています。

GnomeデフォルトのIbusを使ったほうが、あれこれ悩むより即解決します。
日本語Rimix版でなくとも然り。

それでもfcitxがマストかしら?

オフライン

 

#4 2022-02-12 15:36:29

Beats
メンバ
登録日: 2015-03-14

Re: fcitxが自動で起動しません

返答ありがとうございます。
とくにfcitxマストということでもないのですが、慣れもあって、結局下記のサイトを参考に$HOME/.config/autostart/fcitx.desktopを作って対応しました。
https://freebsd.sing.ne.jp/linux/02/09/02/04.html
/etc/xdg/autostart/im-launch.desktopもインプット・メソッド起動用に用意されているようなのですが、こちらは書き方がよくわかりませんでした。
とにかくありがとうございました。

オフライン

 

#5 2022-02-13 07:29:57

redred
メンバ
登録日: 2020-05-27

Re: fcitxが自動で起動しません

Ubuntu(Gnome)は例え日本語Rimix版でなくとも、日本語対応はディストリビューション屈指の簡単設定で済みます。
コマンドでこねくり回すより、用意されているGUIでfcitxに変更もできます。
Ubuntu(Gnome)での確認場所 アプリ一覧→「言語サポート」

用意されているGUIでやれば、自動起動に悩む必要もないはずです。

オフライン

 

Board footer

Powered by FluxBB