desktopappinfo: add Exec to searchable keys
authorRyan Lortie <desrt@desrt.ca>
Sun, 2 Mar 2014 14:38:51 +0000 (09:38 -0500)
committerRyan Lortie <desrt@desrt.ca>
Mon, 3 Mar 2014 21:01:27 +0000 (16:01 -0500)
commit5d5ea495b5dca3965d60556300151c75a44c5653
treead07585b152aa5bcd0ba956a5408fd60e92a94cd
parent9ecc859f95d3a2f3faf918c96ca21a447dd33b6a
desktopappinfo: add Exec to searchable keys

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
gio/gdesktopappinfo.c
gio/tests/desktop-app-info.c
gio/tests/desktop-files/usr/applications/eog.desktop