[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: gnome, kde, xfce use non-policy main menu



On 2008-07-10, Bill Allombert wrote:
> On Thu, Jul 10, 2008 at 09:40:53AM +0200, cobaco (aka Bart Cornelis) 
wrote:
> > > There's also the ?package field (pretty basic, doesn't always match
> > > the enclosing package)
> >
> > TryExec in .desktop, though that looks at binaries not packages and is
> > thus not exactly the same
>
> TryExec is useless for packages that does not contains any executable
> files.

true

> > > and the hints.
> >
> > These would be Categories in .desktop (the actual mapping from
> > categories to a specific hierarchy is specified in the
> > applications.menu file)
>
> Categories have nothing to do whatsoever with menu hints. Hints allows
> to dynamically change the menu hierachy to better balance the number of
> entries per subsections.

they do, in combinatation with the layout section in the applications.menu 
(specifically the 'inline_limit=' part of it)

the example at [1] gives:
- Hints='Gnome,Spreadsheets'
- In Freedesktop Categories this would becomes:
  Categories=Gnome;Ofice;Spreadsheet

the first Categories example at [2] is:
- A desktop entry for a Qt-based image viewer might contain:             
  Categories=Qt;Graphics;RasterGraphics;Viewer;
- The menu file for krita on my system has:
  section="Applications/Graphics"
  hints="KDE,Bitmap"\

  Direct translation of that to Categories gives:
  Categeories=KDE;Graphics;RasterGraphics

[1] http://www.debian.org/doc/packaging-manuals/menu.html/ch3.html
[2] http://standards.freedesktop.org/menu-spec/menu-spec-1.0.html
-- 
Cheers, cobaco (aka Bart Cornelis)

Attachment: signature.asc
Description: This is a digitally signed message part.


Reply to: