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 661710 - libmenu: Add support for keywords in .desktop files
libmenu: Add support for keywords in .desktop files
Status: RESOLVED NOTABUG
Product: gnome-menus
Classification: Core
Component: libgnome-menu
unspecified
Other All
: Normal normal
: ---
Assigned To: gnome-menus dummy account
gnome-menus dummy account
Depends on: 661763
Blocks:
 
 
Reported: 2011-10-13 20:20 UTC by Florian Müllner
Modified: 2011-10-15 05:43 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
libmenu: Add support for keywords in .desktop files (8.48 KB, patch)
2011-10-13 20:20 UTC, Florian Müllner
reviewed Details | Review
libmenu: Add support for keywords in .desktop files (5.80 KB, patch)
2011-10-14 12:51 UTC, Florian Müllner
none Details | Review

Description Florian Müllner 2011-10-13 20:20:21 UTC
See patch.
Comment 1 Florian Müllner 2011-10-13 20:20:24 UTC
Created attachment 198972 [details] [review]
libmenu: Add support for keywords in .desktop files

System Settings supports X-GNOME-Keywords in .desktop files. This
should be generally useful for search (e.g. in gnome-shell), so we
should encourage application developers to add keywords and expose
the functionality in gmenu.
Comment 2 Vincent Untz 2011-10-13 20:27:36 UTC
Review of attachment 198972 [details] [review]:

::: libmenu/desktop-entries.c
@@ +261,3 @@
+  key_file = g_key_file_new ();
+
+  if (!g_key_file_load_from_file (key_file, entry->path, 0, &error))

We don't want to parse the keyfile with GKeyFile in gnome-menus. Please add API in GDesktopAppInfo for this.
Comment 3 Florian Müllner 2011-10-14 12:51:28 UTC
Created attachment 199001 [details] [review]
libmenu: Add support for keywords in .desktop files

(In reply to comment #2)
> We don't want to parse the keyfile with GKeyFile in gnome-menus. Please add API
> in GDesktopAppInfo for this.

OK. Not sure that support for a non-standard field will be considered acceptable, but worth a try (filed as bug 661763)
Comment 4 Florian Müllner 2011-10-14 21:54:18 UTC
Quick follow-up:
The GIO patch has been committed, and as a result I don't really need the addition in gmenu for gnome-shell - should I just close as NOTABUG?
Comment 5 Vincent Untz 2011-10-15 05:43:19 UTC
Let's close, yes :-)