LinuxSir.cn,穿越时空的Linuxsir!

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

hiweed1.0升级后不能进入xfce4的问题。7dehao版主有空请进来下

[复制链接]
发表于 2007-1-3 16:46:39 | 显示全部楼层 |阅读模式
如题。原来在hiweed1.0上装了imagemagic以后不能用xgl了,装上beryl也不能用,最近发现原来是xfce4根本就启动不起来(因为我平时用fvwm,所以没有发现这一点)。看了一下错误报告,总说是在~/.config/.xfce4/下缺一个文件。原以为是高本版的xfce4和以前版本的有区别,可是没有见到大家有类似的错误报告,于是确定是hiwwed的问题。在fvwm中启动xfce4-session可以运行,说明是gdm启动xfce4时有问题。找了找,发现/usr/bin/startxfce4和/usr/bin/startxfce4xgl.sh这两个脚本是gdm启动xfce4和带xgl的xfce4所用的脚本,而且,这两个脚本作者是花花同学~~~

把两个脚本里的内容换成

  1. exec xfce4-session
复制代码

就可以正常起动xfce4了,beryl也可以正常运行
[color="Red"]这里请7dehao版主注意一下,我目前用beryl是比较正常的,貌似我之前不在hiweed上用beryl的问题是xfce4不能启动的原因

请有类似问题的同学参考一下,
另外,这两个脚本是做什么用的??请懂shell的人帮着看看。
还有一个问题,我怎么才能让beryl自动运行呢??每回我都是进入xfce4后又输入的beryl和beryl-manager启动。。。

那两个脚本内容如下:

  1. #/usr/bin/startxfce4:

  2. #!/bin/sh
  3. #
  4. #  xfce4
  5. #
  6. #  Copyright (C) 1996-2003 Olivier Fourdan (fourdan@xfce.org)
  7. #
  8. #  This program is free software; you can redistribute it and/or modify
  9. #  it under the terms of the GNU General Public License as published by
  10. #  the Free Software Foundation; either version 2 of the License, or
  11. #  (at your option) any later version.
  12. #
  13. #  This program is distributed in the hope that it will be useful,
  14. #  but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  16. #  GNU General Public License for more details.
  17. #
  18. #  You should have received a copy of the GNU General Public License
  19. #  along with this program; if not, write to the Free Software
  20. #  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  21. #

  22. if test x"$XDG_CONFIG_HOME" = x""
  23. then
  24.   BASEDIR=$HOME/.config/xfce4/
  25. else
  26.   BASEDIR=$XDG_CONFIG_HOME/xfce4
  27. fi

  28. if test x"$XDG_DATA_DIRS" = x""
  29. then
  30.   XDG_DATA_DIRS="/etc/xdg/xubuntu:/usr/share:/usr/local/share:/usr/share"
  31. else
  32.   XDG_DATA_DIRS="$XDG_DATA_DIRS:/usr/share"
  33. fi
  34. export XDG_DATA_DIRS

  35. if test x"$DISPLAY" = x""
  36. then
  37.   echo "$0: Starting X server"
  38.   prog=xinit
  39. else
  40.   echo "$0: X server already running on display $DISPLAY"
  41.   prog=/bin/sh
  42. fi

  43. if [ -f $BASEDIR/xinitrc ]; then
  44.   exec $prog $BASEDIR/xinitrc $*
  45. elif [ -f $HOME/.xfce4/xinitrc ]; then
  46.   mkdir -p $BASEDIR
  47.   cp $HOME/.xfce4/xinitrc $BASEDIR/
  48.   exec $prog $BASEDIR/xinitrc $*
  49. else
  50.   exec $prog /etc/xdg/xfce4/xinitrc $*
  51. fi  


复制代码


  1. #/usr/bin/startxfce4xgl.sh:

  2. #!/bin/bash -v
  3. #
  4. # start a Xgl session
  5. #
  6. # Author: huangjiahua
  7. #
  8. # Depends:  compiz  compiz-plugins cgwd cgwd-themes  xserver-xgl    xfce4 metacity  compiz-manager csm  libgl1-mesa  libglitz-glx1


  9. Xgl -fullscreen :3 -ac &
  10. Xgl -fullscreen :3 -ac -accel glx:pbuffer -accel xv:pbuffer -dpi 96  &

  11. export DISPLAY=:3
  12. sleep 2s

  13. ## xmodmap end Xresources
  14. /usr/bin/xmodmap /usr/share/apps/kxkb/ubuntu.xmodmap || true
  15. /usr/bin/xmodmap -e "keycode 22 = BackSpace"   # for  shift + Backspace
  16. /usr/bin/xrdb -merge ~/.Xresources || xmessage xrdb ~/.Xresources  failed &

  17. ## about Xsession.d
  18. #for i in /etc/X11/Xsession.d/* ; do
  19. # source $i
  20. #done

  21. . /etc/X11/Xsession.d/*im-switch   || xmessage . /etc/X11/Xsession.d/*im-switch failed  &

  22. ## launch fcitx
  23. #export XMODIFIERS=@im=SCIM ; fcitx || scim -d


  24. domycompiz(){
  25.     ## for the drivers bug
  26.     export LD_PRELOAD=/usr/lib/libGL.so.1.2
  27.        
  28.     #xfwm4 &
  29.     sleep 5s
  30.     killall xfwm4
  31.     ## about compiz-manager
  32.     ( pidof compiz-manager || compiz-manager || compiz --replace dbus csm ) &
  33.     sleep 1s
  34.     # compiz --replace dbus csm
  35.     ## launch cgwd
  36.     sleep 1s
  37.     mkdir -p ~/.cgwd/theme
  38.     dbus-launch cgwd --replace &
  39. }
  40. domycompiz &

  41. #xfce4-panel
  42. #startxfce4
  43. xfce4-session

  44. # unlock
  45. rm -f /tmp/.X3-lock  /tmp/.X11-unix/X3


复制代码
发表于 2007-1-3 17:17:31 | 显示全部楼层
啊呀,你这样点将,我要晕过去的我没有用过hiweed1呀。不过,我用过beryl。貌似你的问题解决了吧?你之前没有启动xfce的时候,你不是说只运行fvwm吗?原来是花花的脚本,你到irc上看他在不在?不知道最近他是不是要考试。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-1-3 17:53:53 | 显示全部楼层
  哎呀呀,看你对hiweed的论坛那么熟悉,还以为你是hiweed的开发者之一呢~~~~

fvwm下启动有错误的原因我猜就是xfce4不能正常启动引起的,因为曾经给的错误报告就是xfce4升级后不能启动的错误报告,后来我顺着改了一下才成那样的。

他还没毕业啊~~~他要考试,我也要考试,大家同是天涯考试人~~~~

我本来说要回学校的,以为你是hiweed成员,所以就发到这里了,顺便叫你来看一下。既然这样,我把这个帖子转到ubuntucn上hiweed版面去~~~~
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-1-3 17:54:33 | 显示全部楼层
忘了说了,谢谢版主大人的帮助~~~~
回复 支持 反对

使用道具 举报

发表于 2007-1-4 08:13:56 | 显示全部楼层
不客气,我也没帮什么,只是顺手找找而已。
回复 支持 反对

使用道具 举报

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

本版积分规则

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