关于删除Ubuntu应用程序菜单


使用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“字样文件名的文件删除,然后点击主菜单上的“还原”按钮即可恢复系统默认的状态。

相关内容