Desktop entries with Hidden or NoDisplay set will no longer be shown

This commit is contained in:
Scoopta 2019-08-18 18:41:16 -07:00
parent 1eeba63c69
commit 20f3d5769d

View File

@ -157,7 +157,7 @@ static void* do_drun(void* data) {
} }
char* full_path = utils_concat(3, app_dir, "/", entry->d_name); char* full_path = utils_concat(3, app_dir, "/", entry->d_name);
GDesktopAppInfo* info = g_desktop_app_info_new_from_filename(full_path); 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); free(full_path);
continue; continue;
} }