fix(desktop-entries): Stop NoDisplay items from being shown

This commit is contained in:
Michael Aaron Murphy 2021-08-18 14:26:12 +02:00
parent 44f1cf3b4e
commit 5b15e92bcb

View file

@ -107,9 +107,9 @@ impl<W: AsyncWrite + Unpin> App<W> {
.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;
}
}