LinuxSir.cn,穿越时空的Linuxsir!

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

gWuBi输入法怎么在xfce4下使用?

[复制链接]
发表于 2004-1-25 00:26:40 | 显示全部楼层 |阅读模式
我安了Xfce4,系统安了gWuBi 1.6版,在KDE下可以正常使用,可是新安的Xfce4下不能使用?

在终端下执行
$gWuBi

有XMODIFIERS没有设置的信息,

可在KDE下没有这个问题,不知道是怎么会事。
 楼主| 发表于 2004-1-25 00:30:50 | 显示全部楼层
加一句
我用的系统是Fedora 1
发表于 2004-1-25 17:35:30 | 显示全部楼层

回复: gWuBi输入法怎么在xfce4下使用?

最初由 parrotmack 发表
我安了Xfce4,系统安了gWuBi 1.6版,在KDE下可以正常使用,可是新安的Xfce4下不能使用?

在终端下执行
$gWuBi

有XMODIFIERS没有设置的信息,

可在KDE下没有这个问题,不知道是怎么会事。


www.fcitx.org 看看吧..那裡有解決辦法
 楼主| 发表于 2004-1-26 10:24:27 | 显示全部楼层
终于解决了,其实就是加两个语句。

编辑/etc/xfce4下的xinitrc文件,我的文件内容如下:

#!/bin/sh

xsetroot -solid black -cursor_name watch

# fix broken $UID on some system...
if test "x$UID" = "x"; then
        UID=`id -u`
fi

# Those are my settings, change them as appropriate...
# Xft DPI: 96
# Xft.hintstyle: hintnone/hintslight/hintmedium/hintfull
# Xft hinting: 1/0

xrdb -merge - << EOF
Xft.dpi: 96
Xft.hinting: 1
Xft.hintstyle: hintmedium
EOF

export XMODIFIERS=@im=gWuBi
gWuBi &

#加的这两行就是进行初始化的,这样就可以自动打开输入法了,其它的输入法也应该一样。

# Launch xscreensaver (if available), but only as non-root user
test $UID -gt 0 && xscreensaver -no-splash &

# Run xfce4-session if installed
xfcesm=`which xfce4-session`
case "x$xfcesm" in
        x|xno*)
                ;;
        *)
                exec $xfcesm
                # Shouldn't get there, but anyway...
                exit
                ;;
esac

# or use old-fashioned startup script otherwise
xfce-mcs-manager
xfwm4 --daemon

# Start-up stuff from ~/Desktop/Autostart directory, if it exists
# (as it seems to be the new standard)
if test -d "$HOME/Desktop/Autostart"; then
  for i in `ls -1 -L ${HOME}/Desktop/Autostart/ 2>/dev/null`; do
    if test -x $HOME/Desktop/Autostart/$i; then
      $HOME/Desktop/Autostart/$i &
    fi
  done
fi

if test -f $HOME/.Xmodmap; then
        xmodmap $HOME/.Xmodmap
fi

xftaskbar4&
xfdesktop&
panel=`which xfce4-panel`
case "x$panel" in
        x|xno*)
                ;;
        *)
                $panel
                ret=$?
                while test $ret -ne 0; do
                        xmessage -center -file - -timeout 20 -title Error <<EOF
A crash occured in the panel
Please report this to the xfce4-dev@moongroup.com list
Meanwhile the panel will be restarted
EOF
                        cat >&2 <<EOF
A crash occured in the panel
Please report this to the xfce4-dev@moongroup.com list
Meanwhile the panel will be restarted
EOF
                        $panel
                        ret=$?
                done
                ;;
esac

xsetroot -solid black -cursor_name watch
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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