Op zo, 18-09-2005 te 18:12 +1000, schreef Hamish Moffatt:
There's a desktop file category defined for ham radio apps, called
"HamRadio". (The full list of agreed categories is towards the end of
http://standards.freedesktop.org/menu-spec/menu-spec-0.9.html ).
Yes, this is a category, but not an actual menu entry. It is up to the
gnome people where this category ends up, e.g. AudioVideo ends up under
Multimedia. So the actual menu structure is hardcoded.
However, the gnome-menus package doesn't specifically define a menu for
this category so they end up under "Other".
Do other ham applications export desktop files? My packages gpredict and
gMFSK do. "Other" is an ugly place for them.
Several of my applications export desktop files. Other is ugly, I agree.
We could of course patch the gnome-menus package which would be okay for
Debian, since it is so hamradio oriented. I guess it would also be okay
for gnome in general, since the menu simply does not appear when there
are no HamRadio entries.
Here is what is needed:
- modify layout/applications.menu and add the following:
<!-- HamRadio -->
<Menu>
<Name>HamRadio</Name>
<Directory>Hamradio.directory</Directory>
<Include>
<And>
<Category>HamRadio</Category>
</And>
</Include>
</Menu> <!-- End HamRadio -->
- Add a file called Hamradio.directory to desktop-directories/ which
looks like this:
[Desktop Entry]
Name=HamRadio
Comment=HamRadio menu
Icon=
Type=Directory
Encoding=UTF-8
We also would need a neat icon, whatsay?
These seem to be replacing the Debian menu system, for better or worse.
They are used by KDE also I believe.
73
Hamish
--
Hamish Moffatt VK3SB <hamish@debian.org> <hamish@cloud.net.au>
Regards,
Joop PG4I