个人工具

UbuntuHelp:GnomeMenuEditingHowTo

来自Ubuntu中文

Wikibot讨论 | 贡献2007年12月5日 (三) 12:08的版本

(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳转至: 导航, 搜索

IconsPage?action=AttachFile&do=get&target=IconNote.png NOTE: HOARY ONLY DOCUMENT!! This page is not necessary for users of Warty Warthog (the first release of Ubuntu).

Introduction

As reported in Ubuntu Bugzilla it is not possible to edit the menus in the current version of hoary, because of an upstream development in gnome 2.10. We are assured that gnome 2.12 will include menu-editing capability, but of course that isn't much good to us hoary users. This howto therefore is intended to try and compensate for this unfortunate state of affairs by giving users a limited ability to control their menus.

Please Note

The following is included only for benefit of system administrators and others who need fine-grained control over menu configurations. It is not supported. The standard default location for .desktop files is /usr/share/applications. The best advice is to look at the existing examples of the various files and try to copy by example.

To Add Menu Entries

Create a desktop file in /usr/share/applications using an existing file as a template. edit this file and add/edit a "Categories=" line at the bottom. This should include a keyword matching the appropriate menu item eg: for an Internet app you should have Categories=Application;Network Restart the panel.

Alternatives

UPDATE: Some very nice people have made programs to edit gnome menus. There are some unsupported programs in development, which may be worth a try.