With search gaining traction as being the preferred way to locate applications (not only in GNOME), the existing .desktop file fields meant for browsing often produce insufficient results. For that reason, gnome-control-center introduced a custom X-GNOME-Keywords field (see [0] for an example), but as the key would be useful for other processes searching through .desktop files, I'd like to propose it for standardization.
Regards, Florian [0] http://git.gnome.org/browse/gnome-control-center/tree/panels/mouse/gnome-mouse-panel.desktop.in.in
>From 62f3e7e65c2b55deab15dfdd3762821e3b8defda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= <[email protected]> Date: Thu, 1 Dec 2011 16:19:18 +0100 Subject: [PATCH] desktop-entry: Add an optional Keywords key When searching through .desktop files, the existing keys meant for menu browsing may produce insufficient results; add a new optional key specifically targeting search which may be used to improve matches. --- desktop-entry/desktop-entry-spec.xml | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/desktop-entry/desktop-entry-spec.xml b/desktop-entry/desktop-entry-spec.xml index 34bc154..009117e 100644 --- a/desktop-entry/desktop-entry-spec.xml +++ b/desktop-entry/desktop-entry-spec.xml @@ -528,6 +528,18 @@ <entry>NO</entry> <entry>1</entry> </row> + <row> + <entry id="key-keywords"><varname>Keywords</varname></entry> + <entry> + A list of localized strings which may be used in addition to + <varname>Name</varname>, <varname>GenericName</varname>, + <varname>Description</varname> etc. to match the entry when + searching through desktop entries. + </entry> + <entry>localestring(s)</entry> + <entry>NO</entry> + <entry>1</entry> + </row> <row> <entry id="key-startupnotify"><varname>StartupNotify</varname></entry> <entry> -- 1.7.7.3
_______________________________________________ xdg mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/xdg
