作者:Automatic 時間:2007-7-30 00:27 來源:Linux110紅聯社區
使用
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“字樣文件名的文件刪除,然后點擊主菜單上的“還原”按鈕即可恢復系統默認的狀態。
[1]http://www.linuxdiyf.com/bbs/redirect.php?tid=53969&goto=lastpost