mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-10-23 11:44:00 -04:00
fix(apppicker): hide NoDisplay handlers except the shell's own
port 2.0
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user