GNOME Bugzilla – Bug 712604
Update g_desktop_app_info_search to additionally match on Exec= from .desktop files
Last modified: 2017-09-13 12:12:16 UTC
g_desktop_app_info_search() searches for desktop files that match the given string but does it in the current locale only; (in my memory) the Shell also used to match against entries in the C locale. This changes g_desktop_app_info_search() to do the same thing.
Created attachment 260136 [details] [review] make GDesktopAppInfo search use the C locale in addition of current locale
Why? It's worth noting that the desktop index will fall back to other locales for search, but only if you explicitly list them in LANGUAGE= If anything, I'd rather do it this way for the unindexed case as well..
> Why? This patch was prompted by a translator pointing he was told not to duplicate English terms in his translated Keywords field, as the original English terms would also be searched. When I looked at the code I noticed it was no longer the case and assumed it was lost when porting to the new g_desktop_app_info_search. I'm all for giving clear instructions to translators, and perhaps that one was erroneous from day one.
(from IRC) I think we decided that what's actually missing is matching on the Exec= line... it seems quite a lot of people are used to that. Let's add that back in.
Actually, this was already done as bug #725023. Woohoo. *** This bug has been marked as a duplicate of bug 725023 ***