Ubuntu 16.04重启输入法

一般使用搜狗输入法,但是偶尔不太稳定会挂掉,但是可以通过以下脚本重启:

pidof fcitx | xargs kill
pidof sogou-qimpanel | xargs kill
nohup fcitx  1>/dev/null 2>/dev/null &
nohup sogou-qimpanel  1>/dev/null 2>/dev/null &

创建脚本

sudo gedit /usr/bin/restart_sogou
#复制以上内容,保存
sudo chmod a+x /usr/bin/restart_sogou

下次直接在命令行上输入restart_sougou即可。

删除搜狗拼音输入法的配置文件,并重启输入法

cd ~/.config #进入存放配置文件的位置
find . -name sogou* #删除搜索到的配置文件sogou-qimpanel
find . -name Sogou* #删除搜索到的配置文件SogouPY、SogouPY.users

参考:

http://blog.csdn.net/zhangxiao93/article/details/53267676

https://www.findhao.net/res/786

http://blog.csdn.net/duxu24/article/details/69061062

原文地址:https://www.cnblogs.com/EasonJim/p/7442730.html