From 84ffcb589d90d6abb0a6639e1b7af3a78a255ca1 Mon Sep 17 00:00:00 2001 From: Scoopta Date: Sun, 27 Oct 2019 12:14:18 -0700 Subject: [PATCH] File icons are now supported --- modes/drun.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modes/drun.c b/modes/drun.c index 3af6a59..123e0e3 100644 --- a/modes/drun.c +++ b/modes/drun.c @@ -38,6 +38,10 @@ static char* get_text(char* file) { const gchar* icon_path = gtk_icon_info_get_filename(info); return utils_concat(4, "img:", icon_path, ":text:", name); } + } else if(G_IS_FILE_ICON(icon)) { + GFile* file = g_file_icon_get_file(G_FILE_ICON(icon)); + char* path = g_file_get_path(file); + return utils_concat(4, "img:", path, ":text:", name); } else { return utils_concat(2, "text:", name); }