From 26107c8ee535d6af091fa7fb572cd885638ff2ed Mon Sep 17 00:00:00 2001 From: Scoopta Date: Wed, 4 Sep 2019 16:01:58 -0700 Subject: [PATCH] Fixed entries not showing for apps without icons --- src/wofi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wofi.c b/src/wofi.c index 6d102f8..d409e4b 100644 --- a/src/wofi.c +++ b/src/wofi.c @@ -333,7 +333,7 @@ static void* do_drun(void* data) { } char* text; GIcon* icon = g_app_info_get_icon(G_APP_INFO(info)); - if(allow_images && icon != NULL) { + if(allow_images) { if(G_IS_THEMED_ICON(icon)) { GtkIconTheme* theme = gtk_icon_theme_get_default(); const gchar* const* icon_names = g_themed_icon_get_names(G_THEMED_ICON(icon)); @@ -345,7 +345,7 @@ static void* do_drun(void* data) { text = utils_concat(4, "img:", icon_path, ":text:", name); } } else { - text = strdup(name); + text = utils_concat(2, "text:", name); } } else { text = strdup(name);