歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> Ubuntu 標題欄消失不見解決辦法

Ubuntu 標題欄消失不見解決辦法

日期:2017/2/28 16:14:40   编辑:Linux教程

不知道哪裡修改了配置,導致Ubuntu 所有窗口的標題欄都隱藏起來了,網山查了很多資料,解決方法一般有如下:

臨時方法: sudo metacity --replace

方法二: 修改/etc/X11/xorg.conf文件,在Section "Screen"裡添加 Option "AddARGBGLXVisuals" "True"

但是我電腦中找不到 /etc/X11/xorg.conf這個文件。

無奈重裝了,把原來的/home下面的配置文件加進去,問題又出現了,所以斷定是配置問題,而不是系統壞掉了。

經過數十次的嘗試,終於發現症結所在。

文件:

用戶根目錄下 ~/.local/share/applications/metacity.desktop

我的配置如下(左邊是行號):

1 [Desktop Entry]
2 Exec=metacity
3 Hidden=true # 關鍵,就是這一句惹得禍,注釋掉(前面加"#"號)或者刪掉即可
4 Name=Metacity
5 NoDisplay=true
6 Type=Application
7 X-GNOME-Autostart-Notify=true
8 X-GNOME-Autostart-Phase=WindowManager
9 X-GNOME-Bugzilla-Bugzilla=GNOME
10 X-GNOME-Bugzilla-Component=general
11 X-GNOME-Bugzilla-Product=metacity
12 X-GNOME-Provides=windowmanager
13 X-GNOME-WMName=Metacity
14 X-GNOME-WMSettingsModule=metacity
15 X-GnomeWMSettingsLibrary=metacity
16 X-Ubuntu-Gettext-Domain=metacity

修改後保存,注銷,重新進入,問題解決。

Copyright © Linux教程網 All Rights Reserved