From 79408ae88bccf691106ce8f7c18f4be107ad3c4e Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Thu, 26 Nov 2026 11:08:49 +0100 Subject: feat(mimeapps): parse and edit mimeapps.list Pure functions over the file text for the default apps page: read [Default Applications], set or remove one type, and map the .desktop files' MimeType= lines to desktop ids. Every edit touches one line and leaves [Added Associations], comments and blank lines as they were; a remove keeps the section header so the text written is never empty. The spec's stale-app check moves to DesktopEntries.byId: an installed app without a MimeType= line is absent from the scan. Co-Authored-By: Claude Opus 5.5 --- docs/superpowers/specs/2026-11-26-default-apps-design.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/superpowers') diff --git a/docs/superpowers/specs/2026-11-26-default-apps-design.md b/docs/superpowers/specs/2026-11-26-default-apps-design.md index 0c5f6db..6034c80 100644 --- a/docs/superpowers/specs/2026-11-26-default-apps-design.md +++ b/docs/superpowers/specs/2026-11-26-default-apps-design.md @@ -89,7 +89,7 @@ that type), and a remove button. Above it is a search field over every type any installed app declares. Choosing a type adds a row, and the row is only written once an app is picked for it. -A row whose app is not installed (it has no `.desktop` file in the scan) shows +A row whose app is not installed (`DesktopEntries.byId` finds no entry for it) shows the raw id in `Theme.red`, so a stale entry is visible. ## Errors -- cgit v1.2.3