找回密码
 注册
查看: 1429|回复: 7

紫光输入法在xfce4中成功使用

[复制链接]
发表于 2003-10-8 21:18:53 | 显示全部楼层 |阅读模式
呵呵,好像之前看到有dx已经成功,我还是来罗嗦两句,可能会对某些dx有帮助哈。
首先正常安装 rpm -ivh rf4magic.....

然后修改 /usr/bin/startxfce4文件(确保你有root权限)

在前面加入
LC_ALL=zh_CN.GB18030
LC_CTYPE=zh_CN.GB18030
XMODIFIERS="@im=rfinput"
XIM=rfinput
XIM_PROGRAM=rfinput
export LC_CTYPE XMODIFIERS XIM XIM_PROGRAM

然后加入下面一段:
# run all system xinitrc shell scripts.
for i in /etc/X11/xinit/xinitrc.d/* ; do
    if [ -x "$i" ]; then
       . "$i"
    fi
done


按ctrl +alt + backspace重新启动进入,呵呵,ctrl+space成功
 楼主| 发表于 2003-10-8 21:19:50 | 显示全部楼层
xfce4真的是个好东西,呵呵,如果嫌程序少,可以使用kde的一些工具
回复

使用道具 举报

发表于 2003-10-10 10:19:54 | 显示全部楼层
还是不行的
你看看我的

#!/bin/sh
#
#  xfce4
#
#  Copyright (C) 1996-2003 Olivier Fourdan ([email protected])
#
#  This program is free software; you can redistribute it and/or modify
#  it under the terms of the GNU General Public License as published by
#  the Free Software Foundation; either version 2 of the License, or
#  (at your option) any later version.
#
#  This program is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU General Public License for more details.
#
#  You should have received a copy of the GNU General Public License
#  along with this program; if not, write to the Free Software
#  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
LC_ALL=zh_CN.GB18030
LC_CTYPE=zh_CN.GB18030
XMODIFIERS="@im=rfinput"
XIM=rfinput
XIM_PROGRAM=rfinput
export LC_CTYPE XMODIFIERS XIM XIM_PROGRAM

if [ ! -d $HOME/.xfce4/ ]; then
        mkdir $HOME/.xfce4/
        mkdir $HOME/.xfce4/settings/
        mkdir $HOME/.xfce4/xffm/
fi

if test x"$DISPLAY" = x""
then
  echo "$0: Starting X server"
  if [ -x $HOME/.xfce4/xinitrc ]; then
        exec xinit $HOME/.xfce4/xinitrc $*
  else
        exec xinit /etc/xfce4/xinitrc $*
  fi  
else
  echo "$0: X server already running on display $DISPLAY"
  if [ -x $HOME/.xfce4/xinitrc ]; then
        exec /bin/sh $HOME/.xfce4/xinitrc $*
  else
        exec /bin/sh /etc/xfce4/xinitrc $*
  fi
fi
# run all system xinitrc shell scripts.
for i in /etc/X11/xinit/xinitrc.d/* ; do
if [ -x "$i" ]; then
. "$i"
fi
done
回复

使用道具 举报

发表于 2003-10-10 10:21:13 | 显示全部楼层
结果连我的xfce也变成了英文的!!!
回复

使用道具 举报

 楼主| 发表于 2003-10-10 10:31:02 | 显示全部楼层
呵呵,位置好像有点不对哦,你把这一段
# run all system xinitrc shell scripts.
for i in /etc/X11/xinit/xinitrc.d/* ; do
if [ -x "$i" ]; then
. "$i"
fi

放在if test x"$DISPLAY" = x"" 。。。。前面试试看,我的是这样的,没有问题
回复

使用道具 举报

发表于 2004-10-16 13:29:35 | 显示全部楼层
我在fodera1安装了
但是找不到上面说的文件
回复

使用道具 举报

发表于 2004-10-29 23:06:16 | 显示全部楼层
我怎么感觉用这个输入法好占内存
调出来后打几个字就很久没反应????
回复

使用道具 举报

发表于 2004-12-29 16:10:00 | 显示全部楼层
不如将他开放出来,大家一起做岂不更好?
我有意做紫光的linux化开发制作!
回复

使用道具 举报

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

本版积分规则

GMT+8, 2025-2-7 07:05 , Processed in 0.037139 second(s), 15 queries .

© 2001-2025 Discuz! Team. Powered by Discuz! X3.5.

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