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

Bug#489247: gpredict: Incorrect KDE menu entry showing up in Lost and Found [nb]



tags 489247 + patch
thanks

[Hamish Moffatt]
> gpredict just uses a menu category of HamRadio, which is one of the
> xdg desktop specification's secondary categories. It doesn't list
> any of the primary categories because I don't think any of them are
> appropriate, but this isn't really policy compliant.

I had a closer look at
<URL:http://standards.freedesktop.org/menu-spec/menu-spec-1.0.html#category-registry>,
and checked which categories googleearth and celestia are using, as
they are somewhat similar in function to gpredict:

  googlearth: Application;Network
  celestia:   Astronomy;Education;Science

Based on this, I suggest Application, Network, Education, Astronomy
and Science is added to the gpredict desktop file.  This will make
gpredict show up in several places in the menu, making it easier to
find, and avoid it showing up in lost+found for those without the
extra-xdg-menus package installed.  Those with the package installed
will still find it in the HamRadio toplevel menu, as well as several
other locations. :) The patch is tested and found to be working.

diff -ur gpredict-1.1/debian/gpredict.desktop gpredict-1.1-pere/debian/gpredict.desktop
--- gpredict-1.1/debian/gpredict.desktop        2010-01-31 11:40:42.000000000 +0100
+++ gpredict-1.1-pere/debian/gpredict.desktop   2010-01-31 11:40:27.000000000 +0100
@@ -6,4 +6,4 @@
 Icon=gpredict.png
 Terminal=false
 Type=Application
-Categories=HamRadio;
+Categories=Application;Network;HamRadio;Education;Astronomy;Science;

Happy hacking,
-- 
Petter Reinholdtsen



Reply to: