LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1123|回复: 8

能否预加载SCIM:gtk im_module,而不需要每次启动gtk2程序时都必须自动加载scim?

[复制链接]
发表于 2004-12-14 21:23:06 | 显示全部楼层 |阅读模式
升级到了scim1.0.1(debian),按照文档里说,现在的Scim gtk im module可以自动启动了。于是,我在控制台中打开任何一个gtk2程序,都会有下面的长长一串:
[php]
SCIM: im_module_init
Loading IMEngine module: m17n ...
    Loading IMEngine Factory 0 ... : Disabled
    Loading IMEngine Factory 1 ... : Disabled
    Loading IMEngine Factory 2 ... : Disabled
    Loading IMEngine Factory 3 ... : Disabled
    Loading IMEngine Factory 4 ... : Disabled
    Loading IMEngine Factory 5 ... : OK
    Loading IMEngine Factory 6 ... : Disabled
    Loading IMEngine Factory 7 ... : Disabled
    Loading IMEngine Factory 8 ... : Disabled
    Loading IMEngine Factory 9 ... : Disabled
    Loading IMEngine Factory 10 ... : Disabled
    Loading IMEngine Factory 11 ... : Disabled
    Loading IMEngine Factory 12 ... : OK
    Loading IMEngine Factory 13 ... : OK
    Loading IMEngine Factory 14 ... : Disabled
    Loading IMEngine Factory 15 ... : Disabled
    Loading IMEngine Factory 16 ... : Disabled
    Loading IMEngine Factory 17 ... : Disabled
    Loading IMEngine Factory 18 ... : Disabled
    Loading IMEngine Factory 19 ... : Disabled
    Loading IMEngine Factory 20 ... : Disabled
    Loading IMEngine Factory 21 ... : Disabled
    Loading IMEngine Factory 22 ... : Disabled
    Loading IMEngine Factory 23 ... : Disabled
    Loading IMEngine Factory 24 ... : Disabled
    Loading IMEngine Factory 25 ... : Disabled
    Loading IMEngine Factory 26 ... : Disabled
    Loading IMEngine Factory 27 ... : Disabled
    Loading IMEngine Factory 28 ... : Disabled
    Loading IMEngine Factory 29 ... : Disabled
    Loading IMEngine Factory 30 ... : Disabled
    Loading IMEngine Factory 31 ... : Disabled
    Loading IMEngine Factory 32 ... : Disabled
    Loading IMEngine Factory 33 ... : OK
    Loading IMEngine Factory 34 ... : Disabled
    Loading IMEngine Factory 35 ... : Disabled
    Loading IMEngine Factory 36 ... : Disabled
m17n IMEngine module is successfully loaded.
Loading IMEngine module: pinyin ...
    Loading IMEngine Factory 0 ... : OK
pinyin IMEngine module is successfully loaded.
Loading IMEngine module: rawcode ...
    Loading IMEngine Factory 0 ... : Disabled
No Factory loaded from rawcode IMEngine module!
Loading IMEngine module: socket ...
    Loading IMEngine Factory 0 ... : Disabled
    Loading IMEngine Factory 1 ... : Disabled
    Loading IMEngine Factory 2 ... : Disabled
    Loading IMEngine Factory 3 ... : Disabled
    Loading IMEngine Factory 4 ... : Disabled
    Loading IMEngine Factory 5 ... : OK
socket IMEngine module is successfully loaded.
Loading IMEngine module: table ...
Failed to load table IMEngine module.
[/php]
哪怕在启动X时,预先scim -d了也不行。虽说这应该是一个方便的功能,不必单独运行scim -d,就可以让gtk2的程序输入汉字。但是每次运行都要拖一个长长的尾巴,而且还要占用加载scim的额外启动时间,就不方便了。苏大侠,不知道可不可以通过某种方式预加载,来避免每次的常尾巴?
发表于 2004-12-14 21:26:15 | 显示全部楼层
install scim-config-socket, scim-frontend-socket and scim-server-frontend please.
 楼主| 发表于 2004-12-14 21:49:57 | 显示全部楼层
i have just left the scim-config-socket, and i apt-geted it. the tail became mush shortter:
[php]
SCIM: im_module_init
Loading IMEngine module: socket ...
    Loading IMEngine Factory 0 ... : OK
    Loading IMEngine Factory 1 ... : OK
    Loading IMEngine Factory 2 ... : OK
    Loading IMEngine Factory 3 ... : OK
    Loading IMEngine Factory 4 ... : OK
    Loading IMEngine Factory 5 ... : OK
socket IMEngine module is successfully loaded.
[/php]

but how can i avoid it? should i have to make further config?
 楼主| 发表于 2004-12-14 22:12:15 | 显示全部楼层
BTW, i use en_US.UTF-8 locale
发表于 2004-12-15 09:34:25 | 显示全部楼层
install scim-config-socket, scim-frontend-socket and scim-server-frontend please.

Could you explain a little? I can't find such source tarball, so how can I make such change?
 楼主| 发表于 2004-12-15 10:13:24 | 显示全部楼层
Su means the Debian Packages, they are maybe already included in the scim source tarball.
发表于 2004-12-15 17:16:30 | 显示全部楼层
最初由 Leira 发表
i have just left the scim-config-socket, and i apt-geted it. the tail became mush shortter:
[php]
SCIM: im_module_init
Loading IMEngine module: socket ...
    Loading IMEngine Factory 0 ... : OK
    Loading IMEngine Factory 1 ... : OK
    Loading IMEngine Factory 2 ... : OK
    Loading IMEngine Factory 3 ... : OK
    Loading IMEngine Factory 4 ... : OK
    Loading IMEngine Factory 5 ... : OK
socket IMEngine module is successfully loaded.
[/php]

but how can i avoid it? should i have to make further config?


You can't avoid it unless modify scim's source code to not print such information.

Or, do not use scim's gtk immodule :-)
发表于 2004-12-15 21:26:22 | 显示全部楼层
恩,Su也许可以考虑以后的版本加一个-silent参数?
发表于 2004-12-16 21:40:36 | 显示全部楼层
不是很明白gtk immodule有什么额外的好处吗?我启动的时候运行了scim -d,不需要这个,呵呵。加载了反而经常出问题,比如lumaqq就不太正常,每次都要去掉。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表