admin管理员组

文章数量:1621121

题记:因为使用fedora 25默认的输入法感受不太习惯,因此折腾想更换成搜狗输入法,致使以前的输入法也不能用了,查了半天资料终于弄好了。架构

1.查看已安装的输入法oracle

要在当前用户状态下查看,在root用户状态下会出现如下错误app

[root@localhost bin]# im-chooserui

(im-chooser:8250): libimchooseui-WARNING **: The connection is closedspa

(im-chooser:8250): libimchooseui-WARNING **: The connection is closedcode

(im-chooser:8250): libimchooseui-WARNING **: The connection is closedci

No protocol specified资源

** (im-chooser:8250): WARNING **: Could not open X display开发

(im-chooser:8250): IMSettings-WARNING **: The connection is closedrem

(im-chooser:8250): GLib-GIO-CRITICAL **: g_dbus_proxy_call_sync_internal: assertion 'G_IS_DBUS_PROXY (proxy)' failed

更改成当前用户后

[root@localhost bin]# su oracle

[oracle@localhost bin]$ im-chooser

Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged.

2.在遇到问题的过程当中首先想到的是卸载重装

卸载 scim架构

[root@localhost oracle]# dnf remove scim

卸载 ibus架构

[root@localhost oracle]# dnf eraser ibus

卸载fctix架构

[root@localhost oracle]# dnf remove fctix

Linux输入法有三种架构分别为:ibus,fctix,scim,而搜狗输入法是基于fctix架构开发的,因此先要安装fcitx输入法架构

[oracle@localhost ~]$ su

Password:

在root用户状态下载并安装fcitx

[root@localhost oracle]# dnf install fcitx

在当前用户状态启动fcitx

[oracle@localhost ~]$ fcitx

在左下角会出现一个输入法图标,右击选择Configure,我当时出现如下错误提示

You're currently running Fcitx with GUI, but fcitx-configtool couldn't be found, the package name is usually fcitx-config-gtk, fcitx-config-gtk3 or fcitx-configtool. Now it will open config file with default text editor.

此时在当前用户状态查看fcitx,显示如下报错

[oracle@localhost ~]$ fcitx-diagnose

# Fcitx Configure UI:

1.  Config Tool Wrapper:xiaoxiaomingxiaong

Found fcitx-configtool at `/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:

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

在网上找了很久关于怎么安装gtk2,gtk3等,最后找到使用如下命令

[root@localhost bin]# dnf fcitx-configtool

装完以后,再查看左下角输入法图标,右击选择Configure,个人是显示正常了,能够选择添加输入法了

下面添加fedora中文资源 FZUG源

# dnf config-manager --add-repo=http://repo.fdzh/FZUG/FZUG.repo

# dnf install http://repo.fdzh/FZUG/free/23/x86_64/fzug-release-23-0.1.noarch.rpm

# wget http://repo.fdzh/FZUG/FZUG.repo -P /etc/yum.repos.d/

下载并安装搜狗拼音输入法

[root@localhost bin]#dnf install sogoupinyin

安装后就能够在左下角输入法中添加搜狗输入法了。

本文标签: 搜狗输入法拼音输入法系统Fedora