周海漢 /文
2010.3.21
ubuntu缺省安裝了compiz. 我將compiz刪光了,結果啓動系統後,沒有window manager了。窗口打開後沒有邊框,不能移動,不能切換,甚至不能獲取鼠標點擊的焦點。
搜了搜,發現這是個bug,https://bugs.launchpad.net/ubuntu/+source/gnome-session/+bug/132772
據說debian的腳本沒有問題。刪除compiz後,可以自動用metacity來代替,而ubuntu9.10有問題。
臨時解決辦法:
在shell裏執行:
metacity --replace
最終解決辦法:
1.安裝fusion-icon,可以切換window manager
http://tombuntu.com/index.php/2007/08/26/compiz-fusion-tray-icon/
2.想偷懶,將compiz再裝上
3.從debian去下載/usr/bin/gnome-wm
沒有試過。ubuntu該腳本在刪除compiz後,還執行compiz,所以導致執行失敗。牛人可以自己修改調試該腳本,將compiz替換爲metacity
3.自己配置metacity自啓動[Desktop Entry]
cd ~/.config/autostart
vi metacity.desktop
輸入:
Encoding=UTF-8
Version=2.28.0
Type=Application
Name=metacity
Comment=metacity
Exec=metacity
StartupNotify=false
Terminal=false
Hidden=false
或者在“系統”-“首選項”-“啓動應用程序”裏,添加上metacity.