讓你自定義的子菜單與系統菜單平起平坐:
1.用文本編輯器打開 /etc/xdg/menus/applications.menu文件
2.添加如下內容:
|
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.當你沒有設置任何快捷方式到你的菜單項里時,你的菜單項是不會顯示的!
(責任編輯:A6)
[火星人 ] Gnome desktop主菜單中添加自己的菜單欄已經有558次圍觀