核心命令
[feng@fsc ~]$ ibus-daemon -r &
或
[feng@fsc ~]$ ibus-daemon -d -x -r
环境:fedora13 linux / kernel 2.6.31.5-127.fc12.i686.PAE / gnome
通知区域上ibus输入法的图标有时会显示不出来,有时启动后就没有这个图标的显示,注销并重新登录该图标一般就可以出现。
但是感觉如果为了一个ibus输入法框就注销重登录,实在有点小题大作了,只重启ibus应该就可以了,于是网上查重启ibus的方法。经查询大致有两种方法:
1. 杀死ibus进程,然后再次启动
killall ibus-daemon
ibus-daemon -d
2. 杀死ibus进程,然后再次启动
ibus-daemon -d -x -r
可以重新启动和启动ibus daemon图标
两种方法,比较起来,自然是第二种方法更好,直接粗野的杀死进程总是不安全的。
ibus进程是ibus-daemon,那就需要查看一个它的帮助说明文档,了解一下 -dxr参数都是什么作用,具体如下,整理整个过程的终端记录。
没有按照网上查得的重启命令,而是根据help文档,感觉使用ibus-daemon -r就可以,然而,问题出现了:当前进程还在前端运行,而非后台运行,结果是终端几乎死掉了,老半天都不反应,准备使用ctrl+z;bg 1把ibus进程放到后台也不可得。
只好ctrl+alt+F2,登录虚拟终端,ps aux|grep ibus
查出ibus的进程,kill 掉,回到之前的桌面环境里,运行
ibus-daemon -r &
搞定。
如下是终端记录:
[feng@fsc ~]$ ibus-daemon
current session already has an ibus-daemon.
[feng@fsc ~]$ ibus-daemon –help
用法:
ibus-daemon [选项…] – ibus daemon
帮助选项:
-h, –help 显示帮助选项
应用程序选项:
-V, –version Show the application’s version.
-d, –daemonize run ibus as background process.
-s, –single do not execute panel and config module.
-x, –xim execute ibus XIM server.
-n, –desktop=name specify the name of desktop session. [default=gnome]
-p, –panel=cmdline specify the cmdline of panel program.
-c, –config=cmdline specify the cmdline of config program.
-a, –address=address specify the address of ibus daemon.
-r, –replace if there is an old ibus-daemon is running, it will be replaced.
-t, –re-scan force to re-scan components, and re-create registry cache.
-o, –timeout=timeout [default is 2000] dbus reply timeout in milliseconds.
-j, –monitor-timeout=timeout [default is 0] timeout of poll changes of engines in seconds. 0 to disable it.
-m, –mem-profile enable memory profile, send SIGUSR2 to print out the memory profile.
-R, –restart restart panel and config processes when they die.
-v, –verbose verbose.
[feng@fsc ~]$ man ibus-daemon
Cannot open the message catalog “man” for locale “zh_CN.utf8″
(NLSPATH=”/usr/share/locale/%l/LC_MESSAGES/%N”)
No manual entry for ibus-daemon
[feng@fsc ~]$ whereis ibus
ibus: /usr/share/ibus
[feng@fsc ~]$ ibus-daemon -r
^Z
[2]+ Stopped ibus-daemon -r
[feng@fsc ~]$ bg 2
[2]+ ibus-daemon -r &
[feng@fsc ~]$
[feng@fsc ~]$ ibus-daemon -r &
[3] 4670
[2] 已终止 ibus-daemon -r
[feng@fsc ~]$ uname -a
Linux fsc 2.6.31.5-127.fc12.i686.PAE #1 SMP Sat Nov 7 21:25:57 EST 2009 i686 i686 i386 GNU/Linux
参考页面:
http://www.silmoon.com/weblog/?p=269
http://sonicflyzhou.spaces.live.com/blog/cns!D830EA8DD122A31D!256.entry