转自:sunng.info今天在工作用的ArchLinux上安装了用Openbox取代了GNOME桌面,感觉良好,回来尝试一下在Ubuntu上也做同样的事情。不料遇到问题,在完成基本的配置之后,Openbox Session无法启动,总是自动跳回gdm。查看.xsession-errors,是gnome-setting-daemon报错:(gnome-settings-daemon:2519): GLib-CRITICAL **: g_propagate_error: assertion `src != NULL’ failed既然是gnome-settings-daemon报错,就在.config/openbox/autostart.sh中注视掉和gnome-settings-daemon相关的部分:1 # Make GTK apps look and behave how they were set up in the gnome config tools 2 #if test -x /usr/libexec/gnome-settings-daemon >/dev/null; then 3 # /usr/libexec/gnome-settings-daemon & 4 #elif which gnome-settings-daemon >/dev/null; then 5 # gnome-settings-daemon & 6 # Make GTK apps look and behave how they were set up in the XFCE config tools 7 #elif which xfce-mcs-manager >/dev/null; then 8 # xfce-mcs-manager n & 9 #fi 进而可以启动Openbox Session了,但是发现Conky仍然无法启动,经过搜索是sleep的时间不够长导致的。而根据launchpad上上的讨论,gnome-settings-daemon也可以在Openbox Session启动后正常运行,于是可以这样设置autostart.sh1 (sleep 20 && conky 1>/dev/null 2>/dev/null) & 2 (sleep 2 && tint) & 3 (sleep 5 && tilda) & 4 (sleep 20 && gnome-settings-daemon 1>/dev/null 2>/dev/null) & tint和tilda对启动顺序没有明确的要求,conky和gnome-settings-daemon需要设置一个较长的等待时间。这是Ubuntu中Openbox的一个bug,可以在此跟踪:https://bugs.launchpad.net/ubuntu/+source/openbox/+bug/459005顺手展示一下我的Openbox桌面
openbox / tint2 / conky / tilda 还没来得及认真配置,呵呵。再有,Ubuntu源里的的tint2版本很低,问题不少,不支持宽度的百分数配置,不支持systray等配置。建议安装开发版本:
http://code.google.com/p/tint2/wiki/Install#For_Ubuntu_9.10_%28Karmic%29Ubuntu下编写SHELL实现右键用VIM打开指定文件从Windows导出Chrome数据到Ubuntu相关资讯 Ubuntu教程
- Ubuntu教程 - 使用Ubuntu拷贝CD和 (12/18/2013 14:38:16)
- 让Ubuntu 12.10支持RAR和7Z文件解 (11/15/2012 18:51:50)
- Windows 7硬盘安装Ubuntu 12.10图 (11/03/2012 19:22:47)
| - 完美安装Ubuntu 12.10最新AMD显卡 (11/27/2012 08:17:47)
- Win 7硬盘安装Ubuntu 12.10 (11/05/2012 13:30:34)
- 虚拟机上Ubuntu 11.10升级到12.04 (10/12/2012 20:00:38)
|
本文评论 查看全部评论 (0)