fix(apppicker): hide NoDisplay handlers except the shell's own

port 2.0

(cherry picked from commit 71417b7ca7)
This commit is contained in:
bbedward authored and dux-ci[bot] committed 2026-10-23 14:06:44 +00:00
1 parent 0102bf6d40
commit 36ebe0e3ef
1 file changed
+2 -3
+2 -3
View File
@@ -146,11 +146,10 @@ DModal {
});
}
// NoDisplay entries are excluded from DesktopEntries.applications but
// remain valid mime handlers; resolve them by id so they stay pickable
// NoDisplay handlers stay hidden like in the launcher, except the shell's own (notepad)
for (const rawId of mimeMatchedRawIds) {
const normId = _normAppId(rawId);
if (normId === "dms-open" || listedIds.has(normId))
if (!normId.startsWith("dev.duxlabs.shell.") || listedIds.has(normId))
continue;
const desktopId = rawId.replace(/\.desktop$/, "");
const entry = DesktopEntries.byId(desktopId) || DesktopEntries.heuristicLookup(desktopId);