From 3773a672a2ff30aea6b8189c90dbc2119864856b Mon Sep 17 00:00:00 2001 From: Scoopta Date: Tue, 7 Jan 2020 18:10:48 -0800 Subject: [PATCH] Added support for searching generic names in drun --- modes/drun.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modes/drun.c b/modes/drun.c index cf5af29..fcadf5a 100644 --- a/modes/drun.c +++ b/modes/drun.c @@ -64,6 +64,7 @@ static char* get_search_text(char* file) { const char* description = g_app_info_get_description(G_APP_INFO(info)); const char* categories = g_desktop_app_info_get_categories(info); const char* const* keywords = g_desktop_app_info_get_keywords(info); + const char* generic_name = g_desktop_app_info_get_generic_name(info); char* keywords_str = strdup(""); @@ -75,7 +76,7 @@ static char* get_search_text(char* file) { } } - char* ret = utils_concat(6, name, file, exec == NULL ? "" : exec, description == NULL ? "" : description, categories == NULL ? "" : categories, keywords_str); + char* ret = utils_concat(7, name, file, exec == NULL ? "" : exec, description == NULL ? "" : description, categories == NULL ? "" : categories, keywords_str, generic_name == NULL ? "" : generic_name); free(keywords_str); return ret; }