LinuxSir.cn,穿越时空的Linuxsir!

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

SCIM 无法自动启动(解决)

[复制链接]
发表于 2006-8-19 22:27:59 | 显示全部楼层 |阅读模式
SCIM 无法自动启动
July 28th, 2006 | Category: Technic

Scim如果无法自动启动可以在终端那里输入
scim -d 然后再CTRL+空格

如果觉得麻烦就通过修改etc/gdm/Xsession文件来实现自动启动
修改/etc/gdm/Xsession文件
找到
# use run-parts to source every file in the session directory; we source
# instead of executing so that the variables and functions defined above
# are available to the scripts, and so that they can pass variables to each
# other
把以下的修改成
SESSIONFILES=$(run_parts $SYSSESSIONDIR)
if [ -n “$SESSIONFILES” ]; then
export XMODIFIERS=”@im=SCIM”
export GTK_IM_MODULE=”scim”
scim -d
for SESSIONFILE in $SESSIONFILES; do
. $SESSIONFILE
done
fi
重新启动X看看能不能启动SCIM
发表于 2006-8-19 23:15:57 | 显示全部楼层
直接在sessions里面添加
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-8-19 23:20:17 | 显示全部楼层
不可以,谁把你的/etc/gdm/Xsession文件
找到
# use run-parts to source every file in the session directory; we source
# instead of executing so that the variables and functions defined above
# are available to the scripts, and so that they can pass variables to each
# other
把以下的 贴出来。。。我 的 要安全模式才可以启动了。。。
回复 支持 反对

使用道具 举报

发表于 2006-9-10 08:37:50 | 显示全部楼层
SESSIONFILES=$(run_parts $SYSSESSIONDIR)
if [ -n "$SESSIONFILES" ]; then
  for SESSIONFILE in $SESSIONFILES; do
    . $SESSIONFILE
  done
fi

echo "$0: Executing $command failed, will try to run x-terminal-emulator"

if [ -n "$zenity" ] ; then
        "$zenity" --info --text "`gettextfunc "I could not start your session and so I have started the failsafe xterm session.  Windows now have focus only if you have your cursor above them.  To get out of this mode type 'exit' in the window in the upper left corner"`"
fi

exec x-terminal-emulator -geometry 80x24+0+0
回复 支持 反对

使用道具 举报

发表于 2006-9-10 17:48:58 | 显示全部楼层
拜托, 请不要再用 dirty 的手段。

现在的 Ubuntu、Debian、Fedore 等都使用 im-switch 来管理输入法。
默认的 Ubuntu 也安装了 scim-pinyin 和 im-switch 。

如果你的 ubuntu 不是默认安装,
请执行
  1. sudo apt-get install scim-pinyin im-switch
  2. im-switch -s  scim_xim
复制代码
回复 支持 反对

使用道具 举报

发表于 2006-9-21 14:42:06 | 显示全部楼层
代码:

cd /etc/X11/xinit/xinput.d ln -s scim en_US ln -s en_US /etc/alternatives/xinput-en_US

直接就可以了
回复 支持 反对

使用道具 举报

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

本版积分规则

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