自 8.04以来 偶尔出现的 compiz 3d后标题栏 丢失 让我 脑袋疼死了
9.10 突然爆发了以下 以前 重新设置 3d效果就可以恢复的 东西 无路如何 页无法恢复
最让人感觉像的就是 显卡 问题
不过 突然 失效 不太合理
按 论坛上 关于 增加 xorg.conf中配置项的方式 当然 无法解决问题
后来 就把 问题集中到 compiz 上
重装 卸载都不能解决
但是 一个突破就是 compiz –replace 可以解决 这个问题
加到启动项里边 就好了
现象上看 大概是 compiz 第一次煤没有 启动成功
后来一些悲剧原因 重装 ubuntu了 autostart 当然也没有了
10.10 今天 居然 又出这个 问题了
不过 这次我准备彻底解决问题拉
没有添加 compiz –replace
现象就是 compiz 不起动 后来 发现 compiz 是一种 gtk-window-decorator (理解不完全正确)
gtk-window-decorator –replace 居然可以达到同样效果
就更确认 是由于 一些原因导致了 那个东西没有启动
后来发现 /usr/bin/gnome-wm 是启动 decorator 的东西
就 修改脚本 打了 一些日志 发现 gnome启动 根本 没有执行 gnome-wm
这样 问题 本质 找到了 不过 想不出来 为什么 他没有执行
于是 google 发现了国际友人
http://ubuntuforums.org/showpost.php?p=7610738&postcount=4
I found the source of the problem, and it’s pretty easy to fix. Very non-intuitive to find, though.
At some point gnome-session switched from using regular commands to using .desktop launchers for launching things like the panel and window manager. It looks for these files in a few locations, including/usr/share/applications and $HOME/.local/share/applications.
It also appears that alacarte (the menu application), or possibly just the freedesktop.org specification for menus, uses $HOME/.local/share/applications for user-specific menu customizations.
For whatever reason, a copy of /usr/share/applications/gnome-wm.desktop was made in my $HOME/.local/share/applications directory which I suspect added Window Manager in my menu somewhere. I’m pretty anal about keeping my menus clean of stuff I don’t use, so I would have gone in and disabled that entry which changed the Hidden setting in my fancy new $HOME/.local/share/applications/gnome-wm.desktop file to True.
The last piece of the puzzle is that gnome-session stops searching after it finds an appropriate file, but it also doesn’t run a launcher if it’s hidden, so it was just straight-up skipping that step.
There are two ways to fix it, according to your preference:
- Change the Hidden setting in $HOME/.local/share/applications/gnome-wm.desktop to false. This will (probably) put a Window Manager item in your applications menu somewhere.
- Remove $HOME/.local/share/applications/gnome-wm.desktop entirely so that gnome-session has to find it elsewhere. If you’re gonna do this, make sure you check for Window Manager (or gnome-wm.desktop) in /usr/share/applications first.
This should work for the gnome-session panel and file manager, too.
New user notes:
- $HOME refers to your home directory, which is /home/yourusername. My sister qualifies as a new user, and she said she may not have been able to figure that out right away.
- To find $HOME/.local/share/applications using the file browser, you’ll need to show hidden files, since .local is hidden.
- Launcher files (like gnome-wm.desktop) are generally listed in the file browser by a name they declare, rather than their file name. This particular file will probably be called Window Manager
回忆一下 昨天 蛋疼 改动过 菜单项……
按照 方案 解决问题
为什么 不能 compiz –replace
第一感觉 就是 不是最佳 解决方案
这里 还有 解释
http://www.jejik.com/articles/2008/10/how_to_properly_start_compiz_in_gnome/
Read More