desktopappinfo: add Exec to searchable keys

Desktop / GNOME / GLib - Ryan Lortie [desrt.ca] - 3 March 2014 15:01 UTC

Add the basename from the first component of the Exec line to the list of strings to search for via g_desktop_app_info_search().

We treat Exec as a fairly strong match -- just below the visible name.

Add a testcase to make sure everything is working OK.

https://bugzilla.gnome.org/show_bug.cgi?id=725023

5d5ea49 desktopappinfo: add Exec to searchable keys
gio/gdesktopappinfo.c | 35 ++++++++++++++++----
gio/tests/desktop-app-info.c | 9 +++++
.../desktop-files/usr/applications/eog.desktop | 2 +-
3 files changed, 38 insertions(+), 8 deletions(-)

Upstream: git.gnome.org


  • Share