From 5b15e92bcb95b8934a2cbb7158b7cf50e43f980c Mon Sep 17 00:00:00 2001 From: Michael Aaron Murphy Date: Wed, 18 Aug 2021 14:26:12 +0200 Subject: [PATCH] fix(desktop-entries): Stop NoDisplay items from being shown --- plugins/src/desktop_entries/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/src/desktop_entries/mod.rs b/plugins/src/desktop_entries/mod.rs index e3910ec..51fd4cf 100644 --- a/plugins/src/desktop_entries/mod.rs +++ b/plugins/src/desktop_entries/mod.rs @@ -107,9 +107,9 @@ impl App { .split(';') .any(|desktop| current.iter().any(|c| *c == desktop)) }) - .unwrap_or(false); + .unwrap_or(true); - if matched { + if matched || entry.name(None).map_or(false, |v| v == "GNOME Shell") { continue; } }