From 81ea8042a7d950021796434d342ead08ec0d4b78 Mon Sep 17 00:00:00 2001 From: Scoopta Date: Tue, 4 Jul 2023 22:51:29 -0700 Subject: [PATCH] Fixed #193. drun mode now respects Hidden --- modes/drun.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modes/drun.c b/modes/drun.c index 14aedc8..8a5b365 100644 --- a/modes/drun.c +++ b/modes/drun.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 Scoopta + * Copyright (C) 2019-2023 Scoopta * This file is part of Wofi * Wofi is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -76,7 +76,8 @@ static char* get_search_text(char* file) { static bool populate_widget(char* file, char* action, struct widget_builder* builder) { GDesktopAppInfo* info = g_desktop_app_info_new_from_filename(file); - if(info == NULL || !g_app_info_should_show(G_APP_INFO(info))) { + if(info == NULL || !g_app_info_should_show(G_APP_INFO(info)) || + g_desktop_app_info_get_is_hidden(info)) { return false; } const char* name;