Bug 66904 - keep up with the spec
Summary: keep up with the spec
Status: RESOLVED FIXED
Alias: None
Product: desktop-file-utils
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Hans Petter Jansson
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-14 16:07 UTC by Matthias Clasen
Modified: 2016-06-17 02:04 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
Add DBusActivatable (802 bytes, patch)
2013-07-14 16:08 UTC, Matthias Clasen
Details | Splinter Review
Warn about OnlyShowIn in Action groups (1.33 KB, patch)
2013-07-14 16:08 UTC, Matthias Clasen
Details | Splinter Review
Admit that we validate more than 1.0 (776 bytes, patch)
2013-07-14 16:09 UTC, Matthias Clasen
Details | Splinter Review

Description Matthias Clasen 2013-07-14 16:07:47 UTC
Here are a few patches to make desktop-file-validate keep up with recent spec revisions.
Comment 1 Matthias Clasen 2013-07-14 16:08:19 UTC
Created attachment 82414 [details] [review]
Add DBusActivatable
Comment 2 Matthias Clasen 2013-07-14 16:08:43 UTC
Created attachment 82415 [details] [review]
Warn about OnlyShowIn in Action groups
Comment 3 Matthias Clasen 2013-07-14 16:09:02 UTC
Created attachment 82416 [details] [review]
Admit that we validate more than 1.0
Comment 4 Allison Lortie (desrt) 2013-07-14 16:35:42 UTC
It seems that we should probably do a proper desktop file spec 1.1 now.

Changes vs. 1.0 based on a diff since when the version was bumped to 1.0:

 - encoding specified as utf-8

 - strengthen wording about having proper extension, removing "magic detection"
   suggestion

 - added recommendation for reverse DNS naming of desktop files

 - clarify that numbers in the file are to be interpreted as per C locale

 - add semicolon as a trailing character on multiple value keys, even if
   only one value is given

 - version field changed to string (from numeric)

 - add D-Bus activation

 - add desktop actions

 - add Keywords


There is also a change in one of the examples removing .png from an icon name.  I don't understand that change, but I assume it has something to do with icon theme?
Comment 5 Vincent Untz 2013-07-19 07:22:57 UTC
Thanks Matthias, I've committed all patches.

One thing that we should likely do, though, is add a check for DBusActivatable to make sure that the .desktop file has a name that at least looks like a reverse DNS name. One easy way is to make sure there's at least a "." in there. Leaving the bug opened for this.
Comment 6 Vincent Untz 2013-07-19 07:24:59 UTC
(In reply to comment #4)
> There is also a change in one of the examples removing .png from an icon
> name.  I don't understand that change, but I assume it has something to do
> with icon theme?

Yes. Values for the Icon shouldn't have an extension, unless it's a path (and not an icon name).
Comment 7 Vincent Untz 2015-09-18 09:50:43 UTC
Sorry for the noise, reassigning to new maintainer.
Comment 8 Hans Petter Jansson 2016-06-17 02:04:09 UTC
Commit 5e8047d0d7a622dfd19dba0310ad58d8b4e2f16b implements what Vincent describes in comment 5. Hopefully that concludes this bug -- closing as fixed.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.