LinuxSir.cn,穿越时空的Linuxsir!

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

各位有解决SCIM与Firefox,acrobat reader冲突的方法吗

[复制链接]
发表于 2005-9-26 09:03:56 | 显示全部楼层 |阅读模式
我很喜欢用SCIM,觉得用起来很流畅,不过它与很多软件都有冲突,

以前我在网上找到的方法是与它冲突的软件要么就改启动脚本,要么就在启动该程序前在前面加一条什么命令(忘了),不过这样实在太麻烦了

各位用SCIM的朋友没遇到这个问题吗?我以前找这个问题解决办法时也看到不少人遇到的

不知道现在有办法没


我是用五笔输入法的
系统FC4



rpm -qa|grep scim
scim-libs-1.4.2-3.fc4
scim-tables-chinese-0.5.3-4.fc4
scim-tables-0.5.3-4.fc4
scim-1.4.2-3.fc4
scim-pinyin-0.5.0-4.fc4
scim-qtimm-0.9.4-0.fc4
 楼主| 发表于 2005-9-26 09:28:24 | 显示全部楼层

不好意思,没去官方网站看就在这问了

找到解决方案了,转到这里,希望对遇到同样问题的朋友有帮助
===========================================


Why Firefox/Mozilla/Acrobat Reader 7/other Gtk+2 based apps can not be installed/started?
Details of the problem

Any versions included in the distribution work just fine, but if you download tarballs or installation files from other sites, maybe the official mozilla site, or acrobat, and try to install it, the installation fails or you can not start the program with an error like this:

SCIM: im_module_init
free(): invalid pointer 0x8265a30!
free(): invalid pointer 0x8265a08!


Cause

SCIM gtk IM Module and Firefox/Mozilla/Acrobat Reader 7 or any other Gtk+2 based C++ applications are binary incompatible with each other if they are not compiled with the same branches of gcc/glibc.
Solution

   1.

      Compile and install firefox/mozilla from source package.
   2.

      Do not use scim gtk immodule by setting GTK_IM_MODULE=xim globally.

If you do not want to or can not recompile the target application from source, such as acrobat reader 7, and you think the second sulution is also too arbitrary, then their is another workaroud.
Workaround

You can disable scim gtk immodule in some gtk programs by appending GTK_IM_MODULE=xim to the command. Say you want to install a new version of firefox download from mozilla official site:

GTK_IM_MODULE=xim ./firefox-installer


Of course it is too inconvenient to append the variable every time you invoke firefox. Then just edit the startup script of firefox/mozilla etc, add one line in the beginning of the file (after the first line if it begins with #!/bin/sh):

export GTK_IM_MODULE=xim


You can use this method to disable scim gtk immodule support in specific applications, rather than all of them.
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

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