Gnome desktop主菜单中添加自己的菜单栏
时间:2008-01-04 07:19:57
来源:赛迪网 作者:kit 编辑:chinaitzhe
1.用文本编辑器打开 /etc/xdg/menus/applications.menu文件
2.添加如下内容:
<!-- esITo --> <Menu> <Name>esITo</Name> <Directory>esito.directory</Directory> <OnlyUnallocated/> <Include> <And> <Category>esITo</Category> </And> </Include> </Menu> <!-- End esITo -->
3.用文本编辑器打开/usr/share/desktop-directories/下任意一个扩展名为.directory的文件,另存为esito.directory.
4.修改esito.directory文件:
[Desktop Entry]
Name=esITo
Name[zh_CN]=esITo自定义菜单
Comment=esITo菜单
Comment[zh_CN]=esITo自定义菜单
Icon=emacs.png
Type=Directory
注:Name=esITo 英文名字 必需 esITo
Name[zh_CN]=esITo 中文名字 除非你用英文
Comment=esITo menu 英文注释
Comment[zh_CN]=esITo自定义菜单 中文注释
Icon=emacs.png 菜单的图标 自己到/usr/share/pixmaps目录里选
Type=Directory 表示是文件夹 必需
5.用文本编辑器打开一个/usr/share/applications目录中的快捷方式(随意),修改Categories项为Categories=esITo
6.重新起动X系统(RedHat\Fedora Core基本上需要重启Linux了)
7.其中esITo是我自己起的名字,可以为任意英文标识.
8.当你没有设置任何快捷方式到你的菜单项里时,你的菜单项是不会显示的!
关键字:Gnome,desktop,主菜,添加,菜单,
下一篇:下面没有链接了











文章评论
共有 0 位网友发表了评论 此处只显示部分留言 点击查看完整评论页面