+ -
当前位置:首页 → 问答吧 → 9.1下装scim碰到问题

9.1下装scim碰到问题

时间:2003-10-24

来源:互联网

现在lang.sh也改好了,locale显示全部是gbk了

自己手动输入
export XMODIFIERS="@im=SCIM"
scim -d

后也可以使用输入法了,但是加入到xinitrc中不起作用,无法自动加载?请问需要将这两句添加到什么文件中?(我是用gdm登录)

btw:还有两个小问题
1.scim面板的字体怎么这么小呢
2.现在用的konqueror,标题栏中输入汉字后光标怎么跑到汉字前面去了?

作者: Vel   发布时间: 2003-10-24

这个应该是在你的当前用户目录存在一个xinitrc文件
你可以使用rm -rf ~/.xinitrc来删除它。
然后,HOHO这是 turbo下的做法slack好久没弄了
vi /etc/X11/xinit/xinitrc
应该在fi后面添加
scim -d
expor ....
startkde前是没问题的

作者: dato   发布时间: 2003-10-24

用GDM?修改/etc/X11/gdm/gdm.conf
在里面添加:
scim -d
export XMODIFIERS="@im=SCIM"
export GTK_IM_MODULES=xim //这是为了让GTK2的程序自动选择默认的xim。

作者: Neo.K   发布时间: 2003-10-25

改xinitrc文件文件要注意,当你用xwmconfig修改了窗口管理器后,记得要重新再改xinitrc文件一次。

引用:
最初由 KLite 发表
用GDM?修改/etc/X11/gdm/gdm.conf
在里面添加:
scim -d
export XMODIFIERS="@im=SCIM"
export GTK_IM_MODULES=xim //这是为了让GTK2的程序自动选择默认的xim。
我刚才看了 一下gdm.conf这个文件。
gdm.conf是一个配置文件,不是一个脚本,恐怕不是改这个文件吧,应该改/etc/X11/gdm/Init里面的XSession吧。

作者: struggle   发布时间: 2003-10-25

刚才改成用gdm登陆,试了一下,应该是修改/etc/X11/gdm/Xsession文件.

作者: struggle   发布时间: 2003-10-25

谢谢各位,我试试看

作者: Vel   发布时间: 2003-10-25

似乎还是没有运行起来……

作者: Vel   发布时间: 2003-10-25

我提供的方法是按照SCIM官方文档来做的。
我刚刚实际操作过了,绝对可行。
不过有个问题需要注意。
当使用xwmconfig切换桌面时需要修改/etc/X11/xinit/xinitrc
我刚开始是用GNOME,修改了xinitrc一切正常,但是切换到KDE时不能启动SCIM,仔细看一下,xinitrc变化了,可能只要修改一次就行了,slackware可能是用备份还原的方式来操作xinitrc来分别启用不同的桌面的,
引用:
fi
scim -d
export XMODIFIERS=@im="SCIM"
# Start the window manager:
startkde
9。1是我第二次安装,我总觉得不如9。0,RPM我没安装过一个,以前9。0是臣无霸什么样的RPM都能装,现在这个是什么都不能装

作者: dato   发布时间: 2003-10-26

引用:
现在用的konqueror,标题栏中输入汉字后光标怎么跑到汉字前面去了
这个是什么原因我说不上来,以前讨论过
运行
qtconfig
选择interface标签
将on the spot 改成over the spot保存退出就不会有问题了

作者: dato   发布时间: 2003-10-26

3x

作者: Vel   发布时间: 2003-10-26

引用:
最初由 struggle 发表
刚才改成用gdm登陆,试了一下,应该是修改/etc/X11/gdm/Xsession文件.
是Xsession這個文件。
由於只能在網吧上網,配置文件我老是想不起。:o

作者: Neo.K   发布时间: 2003-10-26

最后怎么解决的阿 我还是不能自动加载输入发

作者: bluemx   发布时间: 2003-12-14

Me too!

作者: pennywong   发布时间: 2003-12-14

补充:我也是gdm登录的。

作者: bluemx   发布时间: 2003-12-14

修改/etc/X11/gdm/Xsession文件啊,在里面运行窗口管理器的命令后添加
scim -d
export XMODIFIERS="@im=SCIM"
export GTK_IM_MODULES=xim

作者: struggle   发布时间: 2003-12-15

谢谢老大 终于搞定了
我的#!/bin/sh
# $XConsortium: Xsession /main/10 1995/12/18 18:21:28 gildea $
#
#
# $XFree86: xc/programs/xdm/config/Xsession,v 1.2 1998/01/11 03:48:32 dawes Exp $
# Modified for Slackware-3.5, 28-Mar-98 volkerdi
# Extensively rewritten for Slackware 7.0, 03-Oct-1999 volkerdi
# Patched to give priority to $HOME/.xsession, 10-Oct-1999 volkerdi
# Merged changes into upstream (XFree86-4.0.2) version, 17-Feb-2001 volkerdi
# Fixes for $PATH (from Jim Diamond), GDM/KDM/XDM, 2003-02-07 volkerdi
# Patched for bizzare GDM $1, 2003-09-23 volkerdi

# redirect errors to a file in user's home directory if we can
for errfile in "$HOME/.xsession-errors" "${TMPDIR-/tmp}/xses-$USER" "/tmp/xses-$USER"
do
if ( cp /dev/null "$errfile" 2> /dev/null )
then
chmod 600 "$errfile"
exec > "$errfile" 2>&1
break
fi
done

SESSION=`echo $1 | cut -f 2 -d ' '`

userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/usr/X11R6/lib/X11/xinit/.Xresources
sysmodmap=/usr/X11R6/lib/X11/xinit/.Xmodmap

# merge in defaults and keymaps

if [ -r $sysresources ]; then
xrdb -merge $sysresources
fi

if [ -r $sysmodmap ]; then
xmodmap $sysmodmap
fi

if [ -r $userresources ]; then
xrdb -merge $userresources
fi

if [ -r $usermodmap ]; then
xmodmap $usermodmap
fi

# Since xdm doesn't run a bash -login shell (or any other login shell)
# we should source these files to set up the user's environment.
profile=/etc/profile
userprofile=~/.profile

if [ -r $profile ]; then
source $profile 1> /dev/null 2> /dev/null
fi
if [ -r $userprofile ]; then
source $userprofile 1> /dev/null 2> /dev/null
fi

# Set the $PATH through the user's preferred shell.
case `basename "$SHELL"` in
bash|sh|ash)
PATH="`( echo 'echo $PATH' | bash --login ) | tail -1`"
;;
csh|tcsh)
PATH="`( echo 'echo $PATH' | tcsh -l ) | tail -1`"
;;
ksh)
PATH="`( cat /etc/profile ; echo 'echo $PATH' ) | ksh | tail -1`"
;;
zsh)
PATH="`( echo 'echo $PATH' | zsh -l ) | tail -1`"
;;
*)
# We don't know your shell, so we'll set up reasonable defaults.
if [ "`whoami`" = "root" ]; then
PATH=$PATH:/usr/local/sbin:/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin
else
PATH=$PATH:/usr/local/bin:/bin:/usr/bin
fi
;;
esac

# These files (if they exist) are used to set up the X related environment. We used to
# exec .xsession at this location, but that can interfere with choosing a session type
# through XDM/KDM/GDM so it was moved to after a requested session is started. Since
# that means that .xsession might never be run at all when using XDM/KDM/GDM, support
# for the xprofile was added to allow a way for the user to customize the X environment.
if [ -r /etc/xprofile ]; then
source /etc/xprofile
fi
if [ -r ~/.xprofile ]; then
source ~/.xprofile
fi

# Some people say that an .xsession file should always be given priority, even if a
# different window manager was requested in $SESSION. If you want that behavior, uncomment
# the lines below. This is not recommended (nor, in general, is the use of an
# .xsession file as a default... it should be left for the advanced users).
#if [ -x $HOME/.xsession ]; then
# exec $HOME/.xsession $@
#fi

# If a particular session type was requested in $SESSION, start that session:
case "$SESSION" in
failsafe)
xsetroot -solid SteelBlue
exec xterm -geometry 80x24-0-0
;;
kde)
scim -d
export XMODIFIERS="@im=SCIM"
export GTK_IM_MODULES=xim
exec startkde
;;
gnome)
exec gnome-session
;;
openwin)
exec olvwm
;;
fluxbox)
exec fluxbox
;;
fvwm2)
xsetroot -solid SteelBlue
exec fvwm2
;;
fvwm95)
xsetroot -solid SteelBlue
exec fvwm95
;;
blackbox)
exec blackbox
;;
xfce)
exec /etc/X11/xinit/xinitrc.xfce
;;
windowmaker)
exec /etc/X11/xinit/xinitrc.wmaker
;;
afterstep)
exec afterstep
;;
enlightenment)
exec enlightenment
;;
twm)
#xclock -geometry 50x50-1+1 &
#xterm -geometry 80x50+494+51 &
#xterm -geometry 80x20+494-0 &
#xterm -geometry 80x66+0+0 -name login &
xsetroot -solid SteelBlue
exec twm
;;
esac

# If we aren't running from XDM/KDM/GDM and no window manager was
# specified, then we'll run the user's $HOME/.xsession if it's
# executable. This must be set up to run the user's window manager.
if [ -x $HOME/.xsession ]; then
exec $HOME/.xsession $@
fi

# If the user doesn't have their own xsession and none was specified in
# $SESSION, then run the system default session type:
if [ -r /etc/X11/xinit/xinitrc ]; then
exec /etc/X11/xinit/xinitrc
fi

# If a $startup variable is set to define the window or session manager,
# then run that:
if [ -s "$startup" -a -x "$startup" ]; then
exec "$startup"
else
if [ -r "$resources" ]; then
xrdb -load "$resources"
fi
# Run xsm as a failsafe.
exec xsm
fi
#!/bin/sh
# $XConsortium: Xsession /main/10 1995/12/18 18:21:28 gildea $
#
#
# $XFree86: xc/programs/xdm/config/Xsession,v 1.2 1998/01/11 03:48:32 dawes Exp $
# Modified for Slackware-3.5, 28-Mar-98 volkerdi
# Extensively rewritten for Slackware 7.0, 03-Oct-1999 volkerdi
# Patched to give priority to $HOME/.xsession, 10-Oct-1999 volkerdi
# Merged changes into upstream (XFree86-4.0.2) version, 17-Feb-2001 volkerdi
# Fixes for $PATH (from Jim Diamond), GDM/KDM/XDM, 2003-02-07 volkerdi
# Patched for bizzare GDM $1, 2003-09-23 volkerdi

# redirect errors to a file in user's home directory if we can
for errfile in "$HOME/.xsession-errors" "${TMPDIR-/tmp}/xses-$USER" "/tmp/xses-$USER"
do
if ( cp /dev/null "$errfile" 2> /dev/null )
then
chmod 600 "$errfile"
exec > "$errfile" 2>&1
break
fi
done

SESSION=`echo $1 | cut -f 2 -d ' '`

userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/usr/X11R6/lib/X11/xinit/.Xresources
sysmodmap=/usr/X11R6/lib/X11/xinit/.Xmodmap

# merge in defaults and keymaps

if [ -r $sysresources ]; then
xrdb -merge $sysresources
fi

if [ -r $sysmodmap ]; then
xmodmap $sysmodmap
fi

if [ -r $userresources ]; then
xrdb -merge $userresources
fi

if [ -r $usermodmap ]; then
xmodmap $usermodmap
fi

# Since xdm doesn't run a bash -login shell (or any other login shell)
# we should source these files to set up the user's environment.
profile=/etc/profile
userprofile=~/.profile

if [ -r $profile ]; then
source $profile 1> /dev/null 2> /dev/null
fi
if [ -r $userprofile ]; then
source $userprofile 1> /dev/null 2> /dev/null
fi

# Set the $PATH through the user's preferred shell.
case `basename "$SHELL"` in
bash|sh|ash)
PATH="`( echo 'echo $PATH' | bash --login ) | tail -1`"
;;
csh|tcsh)
PATH="`( echo 'echo $PATH' | tcsh -l ) | tail -1`"
;;
ksh)
PATH="`( cat /etc/profile ; echo 'echo $PATH' ) | ksh | tail -1`"
;;
zsh)
PATH="`( echo 'echo $PATH' | zsh -l ) | tail -1`"
;;
*)
# We don't know your shell, so we'll set up reasonable defaults.
if [ "`whoami`" = "root" ]; then
PATH=$PATH:/usr/local/sbin:/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin
else
PATH=$PATH:/usr/local/bin:/bin:/usr/bin
fi
;;
esac

# These files (if they exist) are used to set up the X related environment. We used to
# exec .xsession at this location, but that can interfere with choosing a session type
# through XDM/KDM/GDM so it was moved to after a requested session is started. Since
# that means that .xsession might never be run at all when using XDM/KDM/GDM, support
# for the xprofile was added to allow a way for the user to customize the X environment.
if [ -r /etc/xprofile ]; then
source /etc/xprofile
fi
if [ -r ~/.xprofile ]; then
source ~/.xprofile
fi

# Some people say that an .xsession file should always be given priority, even if a
# different window manager was requested in $SESSION. If you want that behavior, uncomment
# the lines below. This is not recommended (nor, in general, is the use of an
# .xsession file as a default... it should be left for the advanced users).
#if [ -x $HOME/.xsession ]; then
# exec $HOME/.xsession $@
#fi

# If a particular session type was requested in $SESSION, start that session:
case "$SESSION" in
failsafe)
xsetroot -solid SteelBlue
exec xterm -geometry 80x24-0-0
;;
kde)
scim -d
export XMODIFIERS="@im=SCIM"
export GTK_IM_MODULES=xim
exec startkde
;;
gnome)
exec gnome-session
;;
openwin)
exec olvwm
;;
fluxbox)
exec fluxbox
;;
fvwm2)
xsetroot -solid SteelBlue
exec fvwm2
;;
fvwm95)
xsetroot -solid SteelBlue
exec fvwm95
;;
blackbox)
exec blackbox
;;
xfce)
exec /etc/X11/xinit/xinitrc.xfce
;;
windowmaker)
exec /etc/X11/xinit/xinitrc.wmaker
;;
afterstep)
exec afterstep
;;
enlightenment)
exec enlightenment
;;
twm)
#xclock -geometry 50x50-1+1 &
#xterm -geometry 80x50+494+51 &
#xterm -geometry 80x20+494-0 &
#xterm -geometry 80x66+0+0 -name login &
xsetroot -solid SteelBlue
exec twm
;;
esac

# If we aren't running from XDM/KDM/GDM and no window manager was
# specified, then we'll run the user's $HOME/.xsession if it's
# executable. This must be set up to run the user's window manager.
if [ -x $HOME/.xsession ]; then
exec $HOME/.xsession $@
fi

# If the user doesn't have their own xsession and none was specified in
# $SESSION, then run the system default session type:
if [ -r /etc/X11/xinit/xinitrc ]; then
exec /etc/X11/xinit/xinitrc
fi

# If a $startup variable is set to define the window or session manager,
# then run that:
if [ -s "$startup" -a -x "$startup" ]; then
exec "$startup"
else
if [ -r "$resources" ]; then
xrdb -load "$resources"
fi
# Run xsm as a failsafe.
exec xsm
fi

作者: bluemx   发布时间: 2003-12-15

我是用KDM登录应该改哪个文件?

作者: topslayer   发布时间: 2004-03-20

我也是KDM,该怎么办?

作者: qsdickee   发布时间: 2004-04-16