.desktop -> menu
Leslie Viljoen
leslie at camary.co.za
Sat Jun 18 03:34:55 CDT 2005
Sam Morris wrote:
>>>> Does anyone know how a an application is sorted in the menu?
>>>> In a .desktop file I can say "category=Application", but that seems
>>>> unrelated to where the item ends up in the Gnome menu. How is that
>>>> determined?
>>>
>>>
>>> I too would love to control how the menu are organized. Sadly it seems
>>> you can't have any control over it. As far as I could see, menu entries
>>> are simply arranged/sorted in alphabetical order and that's it ! :-/
>>>
>>> I hope that some future version of Gnome will give the user total
>>> control over how the menu items (including sub-menus) are arranged :o(
>>
>>
>> You can edit the "Categories" in a .desktop file; it contains a number
>> of keywords that are used to determine where an application will go. I
>> for example just copied the .desktop file for gconf-editor, renamed it
>> to FooBar and changed System to Network in the Categories. I don't know
>> how the keywords are handled exactly, but it's certainly not "random".
>
>
> Assuming you're talking about the Gnome 2.10 menu, it's determined by
> files in /etc/xdg/menus. See
> <http://www.freedesktop.org/Wiki/standards/menu-spec> for more info.
>
What I really mean is - where is the entry filed?
If I look at the categories in the standard:
http://standards.freedesktop.org/menu-spec/menu-spec-0.9.html#category-registry
I see that sopwith should be an "ArcadeGame". According to that page, I
should make
it a "Game" too - and I see why: because otherwise it doesn't show up
anywhere in
the menu! Since my Games menu is almost as long as my screen, I would think
that a subsection for "Arcade Games" would be the sort of thing needed - how
does update-desktop-database map a Category to a menu location? Can it be
(or should it be) made to take the "ArcadeGame" into account?
Les
More information about the ubuntu-devel
mailing list