SCIM輸入啓動遭遇“Failed to load x11 FrontEnd module. ”錯誤

http://sheng.iteye.com/blog/716921

今天把我的一個Linux系統重啓了一下,想輸入中文,卻發現中文輸入法打不開,應該是SCIM沒啓動,於是

# scim -d

啓動之,卻發現報錯如下:

Linux信息代碼
 收藏代碼
  1. [root@sheng ~]# scim -d  
  2. Smart Common Input Method 1.4.4  
  3.   
  4. Launching a SCIM process with x11...  
  5. Loading socket Config module ...  
  6. Creating backend ...  
  7. Loading x11 FrontEnd module ...  
  8. Failed to load x11 FrontEnd module.  
  9. Failed to launch SCIM.  
  10. [root@sheng ~]#   

 

很自然地上網去搜一下“Failed to load x11 FrontEnd module.”,發現有很多人遇到這個問題,但沒找到有效的解決辦法。用

# ps -ef | grep scim

看了一下,發現有四個scim相關的進程在運行:

Linux信息代碼
 收藏代碼
  1. [root@sheng ~]# ps -ef | grep scim  
  2. root      4706     1  0 13:59 ?        00:00:00 /usr/lib/scim-1.0/scim-launcher -d -c simple -e all -f socket --no-stay  
  3. root      4710     1  0 13:59 ?        00:00:00 /usr/lib/scim-1.0/scim-helper-manager  
  4. root      4711     1  0 13:59 ?        00:00:01 /usr/lib/scim-1.0/scim-panel-gtk --display :0.0 -c socket -d --no-stay  
  5. root      4713     1  0 13:59 ?        00:00:00 /usr/lib/scim-1.0/scim-launcher -d -c socket -e socket -f x11  
  6. root      4779     1  0 14:01 ?        00:00:00 scim-bridge  
  7. root      5349  5275  0 14:10 pts/2    00:00:00 grep scim  

 

於是把這四個進程全部殺掉,然後再重啓scim:

Linux信息代碼
 收藏代碼
  1. [root@sheng ~]# scim -d  
  2. Smart Common Input Method 1.4.4  
  3.   
  4. Launching a SCIM daemon with Socket FrontEnd...  
  5. Loading simple Config module ...  
  6. Creating backend ...  
  7. Reading pinyin phrase lib failed  
  8. Loading socket FrontEnd module ...  
  9. Starting SCIM as daemon ...  
  10. Launching a SCIM process with x11...  
  11. Loading socket Config module ...  
  12. Creating backend ...  
  13. Loading x11 FrontEnd module ...  
  14. GTK Panel of SCIM 1.4.4  
  15.   
  16. Starting SCIM as daemon ...  
  17. SCIM has been successfully launched.  
  18. [root@sheng ~]#   

 啓動正常了,原來剛開始啓動不了是因爲SCIM已經啓動了,才報那個錯。可是爲什麼無法調出輸入法呢?打開SCIM配置界面一看,原來我爲了在我的WinXP上的XServer上使用SCIM時,避免打開輸入法的快捷方式與WinXP的的快捷方式衝突,把啓動快捷鍵改成了“Shift+Ctrl+Z”,難怪無法調出輸入法。

 

在此留個記號,免得下次再在這個坑上摔跟斗。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章