After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 677298 - [PATCH] Fix desktop-file-validate icon and category warnings
[PATCH] Fix desktop-file-validate icon and category warnings
Status: RESOLVED FIXED
Product: planner
Classification: Other
Component: General
unspecified
Other Linux
: Normal normal
: ---
Assigned To: planner-maint
planner-maint
: 683601 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2012-06-01 19:09 UTC by Ville Skyttä
Modified: 2012-10-11 13:48 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Fix desktop-file-validate icon and category warnings (1012 bytes, patch)
2012-06-01 19:09 UTC, Ville Skyttä
committed Details | Review

Description Ville Skyttä 2012-06-01 19:09:55 UTC
Created attachment 215461 [details] [review]
Fix desktop-file-validate icon and category warnings

The attached patch fixes the following desktop-file-validate errors/warnings:

error: (will be fatal in the future): value "gnome-planner.png" for key "Icon" in group "Desktop Entry" is an icon name with an extension, but there should be no extension as described in the Icon Theme Specification if the value is not an absolute path

warning: value "GNOME;GTK;Application;Office;ProjectManagement;" for key "Categories" in group "Desktop Entry" contains a deprecated value "Application"

error: (will be fatal in the future): value "ProjectManagement" in key "Categories" in group "Desktop Entry" requires another category to be present among the following categories: Office;Development
Comment 1 Alexandre Franke 2012-06-01 20:35:58 UTC
Hi,

(In reply to comment #0)
> Created an attachment (id=215461) [details] [review]
> Fix desktop-file-validate icon and category warnings

Thanks for your contribution.

> The attached patch fixes the following desktop-file-validate errors/warnings:

I'm curious: did you manually run this tool or is this part of a bigger process?

> error: (will be fatal in the future): value "gnome-planner.png" for key "Icon"
> in group "Desktop Entry" is an icon name with an extension, but there should be
> no extension as described in the Icon Theme Specification if the value is not
> an absolute path

Ok with that.

> warning: value "GNOME;GTK;Application;Office;ProjectManagement;" for key
> "Categories" in group "Desktop Entry" contains a deprecated value "Application"

Ok. It makes perfect sense: if it has a desktop file, it's an application.

> error: (will be fatal in the future): value "ProjectManagement" in key
> "Categories" in group "Desktop Entry" requires another category to be present
> among the following categories: Office;Development

I don't understand this one. We already have the Office category, so we fulfill the requirement. Also Development is not relevant for us, so I don't want to add that.
Comment 2 Ville Skyttä 2012-06-01 20:59:28 UTC
(In reply to comment #1)
> I'm curious: did you manually run this tool or is this part of a bigger
> process?

Manually on all *.desktop files I had installed.

> > error: (will be fatal in the future): value "ProjectManagement" in key
> > "Categories" in group "Desktop Entry" requires another category to be present
> > among the following categories: Office;Development
> 
> I don't understand this one. We already have the Office category, so we fulfill
> the requirement. Also Development is not relevant for us, so I don't want to
> add that.

I think it's somewhat silly too, but "Office;Development" means that *both* need to be there.  If the tool wanted only one of them, it'd say "Office or Development".  See also the "Related Categories" explanation and column at http://standards.freedesktop.org/menu-spec/latest/apa.html
Comment 3 Alexandre Franke 2012-06-04 21:02:30 UTC
(In reply to comment #2)
> (In reply to comment #1)
> > > error: (will be fatal in the future): value "ProjectManagement" in key
> > > "Categories" in group "Desktop Entry" requires another category to be present
> > > among the following categories: Office;Development
> > 
> > I don't understand this one. We already have the Office category, so we fulfill
> > the requirement. Also Development is not relevant for us, so I don't want to
> > add that.
> 
> I think it's somewhat silly too, but "Office;Development" means that *both*
> need to be there.  If the tool wanted only one of them, it'd say "Office or
> Development".  See also the "Related Categories" explanation and column at
> http://standards.freedesktop.org/menu-spec/latest/apa.html

I'd rather we fix this nonsense upstream. I'll send something to the XDG mailing list to discuss this issue, unless you want to take care of it.

In the meantime, would it be ok for you if I pushed a first commit with the other fixes?
Comment 4 Ville Skyttä 2012-06-05 06:38:52 UTC
(In reply to comment #3)
> I'd rather we fix this nonsense upstream. I'll send something to the XDG
> mailing list to discuss this issue, unless you want to take care of it.

Nah, please go ahead.

> In the meantime, would it be ok for you if I pushed a first commit with the
> other fixes?

Sure.
Comment 5 Alexandre Franke 2012-06-05 15:02:08 UTC
Comment on attachment 215461 [details] [review]
Fix desktop-file-validate icon and category warnings

I have pushed the approved bits.
Comment 7 Ville Skyttä 2012-06-05 16:29:06 UTC
I'm too lazy to subscribe to the list, so one more comment here: I think it's odd in general that if one adds category X, one needs to also add category Y - instead having Y there could just imply category X.
Comment 8 Alexandre Franke 2012-06-05 16:35:06 UTC
That makes sense. I'll voice that opinion later in the discussion (when the list wakes up).
Comment 9 Alexandre Franke 2012-09-08 18:56:53 UTC
*** Bug 683601 has been marked as a duplicate of this bug. ***
Comment 10 Alexandre Franke 2012-10-11 13:48:38 UTC
The spec has been fixed, so now we're compliant.

http://specifications.freedesktop.org/menu-spec/menu-spec-latest.html#category-registry

The validation tool has been fixed as well in http://cgit.freedesktop.org/xdg/desktop-file-utils/commit/?id=7a647466f4455c289549e399b20f86bd50190df3

Closing this bug.