From ca0dfffe4865c1d3ee4de716c56f707797147b3a Mon Sep 17 00:00:00 2001 From: Ryan Lortie Date: Thu, 3 Apr 2014 15:50:02 +0200 Subject: desktop-entry: specify $XDG_CURRENT_DESKTOP --- desktop-entry/desktop-entry-spec.xml | 33 ++++++++++++++++++++++++++------- 1 file changed, 26 insertions(+), 7 deletions(-) diff --git a/desktop-entry/desktop-entry-spec.xml b/desktop-entry/desktop-entry-spec.xml index f760000..1f02d95 100644 --- a/desktop-entry/desktop-entry-spec.xml +++ b/desktop-entry/desktop-entry-spec.xml @@ -469,13 +469,32 @@ OnlyShowIn, NotShowIn - A list of strings identifying the environments that should - display/not display a given desktop entry. Only one of - these keys, either OnlyShowIn or - NotShowIn, may appear in a group (for - possible values see the Desktop - Menu Specification). + + A list of strings identifying the desktop environments that + should display/not display a given desktop entry. + + + + By default, a desktop file should be shown, unless an OnlyShowIn + key is present, in which case, the default is for the file not to + be shown. + + + + If $XDG_CURRENT_DIRECTORY is set then it contains a + colon-separated list of strings. In order, each string is + considered. If a matching entry is found in + OnlyShowIn then the desktop file is shown. + If an entry is found in NotShowIn then the + desktop file is not shown. If none of the strings match then + the default action is taken (as above). + + + + The same desktop name may not appear in both + OnlyShowIn and NotShowIn of + a group. + string(s) NO -- cgit v1.2.3-54-g00ecf