Skip to content

Commit 51dafc4

Browse files
committed
fix(launcher): Exclude GNOME Initial Setup
1 parent 589dcb1 commit 51dafc4

File tree

1 file changed

+7
-1
lines changed
  • plugins/src/desktop_entries

1 file changed

+7
-1
lines changed

plugins/src/desktop_entries/mod.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ pub async fn main() {
5959
}
6060
}
6161

62+
/// Desktop entries to hard exclude.
63+
const EXCLUSIONS: &[&str] = &["GNOME Shell", "Initial Setup"];
64+
6265
struct App<W> {
6366
entries: Vec<Item>,
6467
locale: Option<String>,
@@ -126,7 +129,10 @@ impl<W: AsyncWrite + Unpin> App<W> {
126129
}
127130

128131
// Avoid showing the GNOME Shell entry entirely
129-
if entry.name(None).map_or(false, |v| v == "GNOME Shell") {
132+
if entry
133+
.name(None)
134+
.map_or(false, |v| EXCLUSIONS.contains(&v.as_ref()))
135+
{
130136
continue;
131137
}
132138

0 commit comments

Comments
 (0)