LinuxSir.cn,穿越时空的Linuxsir!

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

往gdm里加入xfce会话的解决方法

[复制链接]
发表于 2003-12-5 21:28:42 | 显示全部楼层 |阅读模式
在/usr/share/apps/switchdesk下有很多session,选择一个如Xclients.twm编辑

#!/bin/bash
#created by me

exec /usr/bin/startxfce4

另存为Xclients.xfce
然后chmod 755 /usr/share/apps/switchdesk/Xclients.xfce
发表于 2003-12-6 03:41:18 | 显示全部楼层

是不是还有其他的步骤?

我改了之后还是一切照旧..
发表于 2003-12-7 06:07:50 | 显示全部楼层

好容易搞好了..原来fedora有自己的特色方法..

原来fedora的session chooser很特别, 和RH9不一样, 菜单的选项有一个单独的目录来记录,位置/etc/X11/dm/Sessions, 所以首当其冲要建立这个目录项文件,
比如XFce4.desktop,具体名字可以自己起,但最好第一个字母要大写,否则排在默认选项之前就不好看了, 我建的是
[Desktop Entry]
Encoding=UTF-8
Name=XFce4
Type=Application
Icon=
Exec=XFce4

你也可以加入Name..Comments, 会好看一些, 不过不重要.

然后就是修改xdm的工作了,
在xdm的目录下找到/etc/X11/xdm/XSession, 找到这个Script其中选项部分
在kde部分后加入:
XFce4)
       exec -l $SHELL -c "$SSHAGENT /usr/share/apps/switc\
hdesk/Xclients.xfce4"
       ;;
这部分索引代码. 存盘...


接下来就是/usr/share/apps/switchdesk/Xclients.xfce4
这个会话文件了, 安装时应该已经自动建好,如果没有, 就自己建一个:
#!/bin/sh
#########################################################\
###############
#
# XFce4
#
#########################################################\
###############
exec /usr/bin/startxfce4


这样就链接好了, 应该可以启动了,重新登入x,在gdm菜单下选择试试看吧...

其实还有一个小问题,就是fcitx不能自动启动, 你还要修改一下startxfce4的启动script,刚才那个文件或xfce4/xinitrc,或自己的常用用户$home下的.Xclients-default.xfce4都可以

加入下面的
export XMODIFIERS=@im=fcitx
fcitx &
#gdeskcal -x 1000 -y 800 &
exec startxfce4

就可以了, 我喜欢这个桌面非常快,简洁方便, 我建议把她的taskbar去掉, 就是
那个启动sciipt里的xftaskbar4&, 换成自己喜欢的xfce4-iconbox或gnome里的组件效果会更好.

好了,写了这么多,大家一定都看烦了, 这可是我两天的心血呀! 我用这个办法加入了好多会话, rox, icewm, ....工作非常好, icewm也是个很好的session,很快且支持xft, 蛮好的....
发表于 2003-12-13 15:51:31 | 显示全部楼层
and the one important for user,that the default desktop is not Xfce4, it's   shift to the gonme auto! so ,you should make the file .Xclients-default
, it's better to copy the file (.Xclients-default,Xclients(sh file)).then change the permission for user.

then logout ,it will switch into XFce4, good luck!

Aettention!:  i think it's better to edit the .Xclients-default(make that exec xfce4):

############
exec /user/bin/startxfce4
#############


it's shame that my enlish is poor,and the words which i mastered ,now it was gone. Sad!
发表于 2003-12-20 18:08:01 | 显示全部楼层

回复: 好容易搞好了..原来fedora有自己的特色方法..

最初由 pandalcg 发表
就可以了, 我喜欢这个桌面非常快,简洁方便, 我建议把她的taskbar去掉, 就是
那个启动sciipt里的xftaskbar4&, 换成自己喜欢的xfce4-iconbox或gnome里的组件效果会更好.
xfce4-iconbox怎么启动,还是默认没有安装呢?要去哪儿能下载到?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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