From 6d90a9d53104e185303895b40927ce44be87edcb Mon Sep 17 00:00:00 2001 From: David Faure Date: Fri, 4 Apr 2014 00:16:21 +0200 Subject: desktop-entry-spec: define "desktop ID" (was only in menu spec; moved and improved) As requested and reviewed by Ryan Lortie, also reviewed by Bastien Nocera. --- desktop-entry/desktop-entry-spec.xml | 44 ++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/desktop-entry/desktop-entry-spec.xml b/desktop-entry/desktop-entry-spec.xml index 1f02d95..d3879f2 100644 --- a/desktop-entry/desktop-entry-spec.xml +++ b/desktop-entry/desktop-entry-spec.xml @@ -61,6 +61,15 @@ + + David + Faure + +
+ faure@kde.org +
+
+
@@ -1475,4 +1484,39 @@ Icon=fooview-new the name as it appears in the "Encoding" column above. + + Desktop File ID + + The desktop file ID is the identifier of an installed desktop entry file. + + + To determine the ID of a desktop file, make its full path relative to + the $XDG_DATA_DIRS component in which the desktop file is installed, remove the "applications/" + prefix, and turn '/' into '-'. + + + For example /usr/share/applications/foo/bar.desktop has + the desktop file ID foo-bar.desktop. + + + If multiple files have the same desktop file ID, the first one in the + $XDG_DATA_DIRS precedence order is used. + + + For example, if $XDG_DATA_DIRS contains the default paths /usr/local/share:/usr/share, then + /usr/local/share/applications/org.foo.bar.desktop and + /usr/share/applications/org.foo.bar.desktop both have + the same desktop file ID org.foo.bar.desktop, but only the first + one will be used. + + + If both foo-bar.desktop and foo/bar.desktop exist, + it is undefined which is selected. + + + If the desktop file is not installed in an applications subdirectory of one + of the $XDG_DATA_DIRS components, it does not have an ID. + + + -- cgit v1.2.3-54-g00ecf