QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1996|回复: 1

配置桌面菜单时出现的问题

[复制链接]
发表于 2006-3-2 14:34:38 | 显示全部楼层 |阅读模式
我用的是FC4
我把/etc/xdg/menus下的所有.menu删掉
然后又写了一个applications.menu文件如下:“

<!DOCTYPE Menu PUBLIC "-//freedesktop//DTD Menu 1.0//EN"
"http://www.freedesktop.org/standards/menu-spec/1.0/menu.dtd">

<Menu>

  <Name>Applications</Name>
  <Directory>Applications.directory</Directory>

  <!-- Scan legacy dirs first, as later items take priority -->
  <LegacyDir>/usr/share/gnome/apps</LegacyDir>
  <LegacyDir>/etc/X11/applnk</LegacyDir>

  <!-- Read standard .directory and .desktop file locations -->
  <DefaultAppDirs/>
  <DefaultDirectoryDirs/>

  <!-- Read in overrides and child menus from applications.d -->
  <DefaultMergeDirs/>

  <!-- CServ -->
        <Menu>
                <Name>CServ</Name>
                        <Directory>cserv.directory</Directory>
                        <OnlyUnallocated/>
                        <Include>
                        <And>
                        <Category>CServ</Category>
                        </And>
                </Include>
        </Menu>   <!-- End CServ -->

  <!-- Other -->
  <Menu>
    <Name>Other</Name>
    <Directory>Other.directory</Directory>
    <OnlyUnallocated/>
    <Include>
      <And>
        <Category>Application</Category>
        <Not><Category>Core</Category></Not>
        <Not><Category>Settings</Category></Not>
        <Not><Category>SystemSetup</Category></Not>
        <Not><Category>X-Red-Hat-ServerConfig</Category></Not>
      </And>
    </Include>
  </Menu> <!-- End Other -->

  <MergeFile>applications-kmenuedit.menu</MergeFile>

</Menu> <!-- End Applications -->

”另外我也写了一个cserv.directory文件
但发现除了CServ外,应用程序的下拉菜单还有很多别的像“Game”“系统工具”这样的菜单

请问为什么会这样?
怎么把这些其它的菜单去掉?
多谢!
发表于 2006-3-5 11:28:33 | 显示全部楼层
看看 applications-kmenuedit.menu 中是否有你不需要的菜单内容。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-4-25 17:56 , Processed in 0.063059 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表