From 6e5ba694300eda9ab0dc7b0c6a156ae49bda59ba Mon Sep 17 00:00:00 2001 From: Nasrullaunais Date: Thu, 20 Nov 2025 07:26:48 +0530 Subject: [PATCH] Fix: Remove duplicate apps in Quickshell launcher using filter --- dots/.config/quickshell/ii/services/AppSearch.qml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/dots/.config/quickshell/ii/services/AppSearch.qml b/dots/.config/quickshell/ii/services/AppSearch.qml index d67919890..358b8d207 100644 --- a/dots/.config/quickshell/ii/services/AppSearch.qml +++ b/dots/.config/quickshell/ii/services/AppSearch.qml @@ -40,9 +40,14 @@ Singleton { } ] + // Deduped list to fix double icons readonly property list list: Array.from(DesktopEntries.applications.values) - .sort((a, b) => a.name.localeCompare(b.name)) - + .filter((app, index, self) => + index === self.findIndex((t) => ( + t.id === app.id + )) + ) + readonly property var preppedNames: list.map(a => ({ name: Fuzzy.prepare(`${a.name} `), entry: a