Changes between Version 1 and Version 2 of EditAppMenu
- Timestamp:
- Nov 20, 2019, 1:44:17 PM (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
EditAppMenu
v1 v2 9 9 10 10 = .desktop = 11 {{{ 11 {{{#!ini 12 12 [Desktop Entry] 13 13 Name=Arduino … … 21 21 }}} 22 22 = .directory = 23 {{{ 23 {{{#!ini 24 24 [Desktop Entry] 25 25 Encoding=UTF-8 … … 27 27 }}} 28 28 = .menu = 29 {{{ 29 {{{#!xml 30 30 <!DOCTYPE Menu PUBLIC "-//freedesktop//DTD Menu 1.0//EN" 31 31 "http://www.freedesktop.org/standards/menu-spec/menu-1.0.dtd"> … … 44 44 45 45 Para que un menú se presente como submenú de otro, debe estar en el XML del padre referenciado, tal que así: 46 {{{ 46 {{{#!xml 47 47 <!-- Development Tools --> 48 48 <Menu> … … 71 71 72 72 Este cacho de fchero es de applications.menu, que está en el sitio de los .menu. Este fichero es monolítico, pero realmente se podría descomponer en otros más pequeños que se correspondieran con las entradas principales del menú, como "Development", "Office", etc. usando el tag <include> para incluirlos tal como se hace en [https://developer.gnome.org/menu-spec/ este] documento de freedesktop (Utiliza el tag ''Filename''). 73 74 Para evitar que algo salga repetido en varios menús, o bien se deja una sola categoría o se usa la opción '''!OnlyShowIn''' tal como especifica el documento anterior del que aquí está el párrafo: 75 76 >''If you add the line OnlyShowIn=Old; to a desktop entry, then old legacy implementations that ignore OnlyShowIn will still show the desktop entry, but implementations of this specification will not. Thus you can add an "OnlyShowIn=Old;" entry to the legacy hierarchy, and a new-style desktop entry to datadir/applications/, and still get only one entry in the menus. 77 ''