歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> 關於刪除Ubuntu應用程序菜單

關於刪除Ubuntu應用程序菜單

日期:2017/2/28 17:31:36   编辑:Linux教程
使用wine安裝了QQ 2006,在應用程序菜單自動生成Wine-騰訊軟件-...多級文件夾&程序菜單,因為qq老是啟動出錯(ps.還是Pidgin好用),使用wine uninstaller也無法卸載,只好把文件夾qq安裝目錄刪掉,還要把應用程序菜單下的Wine-騰訊軟件-...刪除(為什麼這裡沒有像win下右鍵刪除菜單的功能呢?),以為和其他菜單一樣,菜單保存在/usr/share/applications下,可在這個目錄下沒有找到Wine目錄項,在~/.wine目錄翻了半天也沒有,最後在幫助文檔看到:

  If you are confused about the order in which paths are searched, here is a simple list for resolving the location of applications.menu:

  1. Search each directory in $XDG_CONFIG_HOME in order to find menus/applications.menu. If $XDG_CONFIG_HOME is not set, it defaults to the ~/.config/ directory.

  2. Search each directory in $XDG_CONFIG_DIRS in order to find menus/applications.menu. If $XDG_CONFIG_DIRS is not set, it defaults to the /etc/xdg/ directory.

  3. Use the first applications.menu file found.

  應用程序的菜單是在~/.config/menus/applications.menu和/etc/xdg/menus/applications.menu文件定義,找到文件存放位置就好辦了。

  1. 如果只要使一些菜單不顯示,打開 系統-首選項-主菜單,把不想顯示的菜單取消選中狀態就ok了。

  2. 如果要把主菜單下的右窗格的一些菜單刪除,可以選中菜單點右鍵,選擇“刪除”

  3. 如果要刪除左窗格下的新增的項目(比如我的Wine項)就要先到~/.config/menus/目錄下,把所有帶有“undo“字樣文件名的文件刪除,然後點擊主菜單上的“還原”按鈕即可恢復系統默認的狀態。
Copyright © Linux教程網 All Rights Reserved