From 8093c05fe145d92e15cbeda927b1cf3622927298 Mon Sep 17 00:00:00 2001 From: Scoopta Date: Mon, 28 Oct 2019 14:33:11 -0700 Subject: [PATCH] The search text for drun no longer contains the image insertion sequences --- modes/drun.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/modes/drun.c b/modes/drun.c index 4f0dd02..2b7d5ba 100644 --- a/modes/drun.c +++ b/modes/drun.c @@ -50,8 +50,9 @@ static char* get_text(char* file) { } } -static char* get_search_text(char* file, char* name) { +static char* get_search_text(char* file) { GDesktopAppInfo* info = g_desktop_app_info_new_from_filename(file); + const char* name = g_app_info_get_display_name(G_APP_INFO(info)); const char* exec = g_app_info_get_executable(G_APP_INFO(info)); const char* description = g_app_info_get_description(G_APP_INFO(info)); const char* const* keywords = g_desktop_app_info_get_keywords(info); @@ -69,7 +70,7 @@ void drun_init() { if(text == NULL) { goto cache_cont; } - char* search_text = get_search_text(node->line, text); + char* search_text = get_search_text(node->line); wofi_insert_widget(text, search_text, node->line); map_put(cached, node->line, "true"); free(search_text); @@ -123,7 +124,7 @@ void drun_init() { continue; } map_put(entries, entry->d_name, "true"); - char* search_text = get_search_text(full_path, text); + char* search_text = get_search_text(full_path); wofi_insert_widget(text, search_text, full_path); free(text); free(search_text);