From 20f3d5769dd2ba3e081cc441d01d8a5572831403 Mon Sep 17 00:00:00 2001 From: Scoopta Date: Sun, 18 Aug 2019 18:41:16 -0700 Subject: [PATCH] Desktop entries with Hidden or NoDisplay set will no longer be shown --- src/wofi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wofi.c b/src/wofi.c index eb418d2..486cb2b 100644 --- a/src/wofi.c +++ b/src/wofi.c @@ -157,7 +157,7 @@ static void* do_drun(void* data) { } char* full_path = utils_concat(3, app_dir, "/", entry->d_name); GDesktopAppInfo* info = g_desktop_app_info_new_from_filename(full_path); - if(!G_IS_DESKTOP_APP_INFO(info)) { + if(!G_IS_DESKTOP_APP_INFO(info) || g_desktop_app_info_get_is_hidden(info) || g_desktop_app_info_get_nodisplay(info)) { free(full_path); continue; }