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

port 2.0
This commit is contained in:
bbedward
2026-10-23 10:06:12 -04:00
parent 6bd0e24bd4
commit 71417b7ca7
+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);