Skip to content

fix(desktop): refuse malformed hidden application overrides - #12686

Merged
morluto merged 2 commits into
mainfrom
audit/desktop-hidden-structural-after-12675
Nov 20, 2026
Merged

morluto merged 2 commits into
mainfrom
audit/desktop-hidden-structural-after-12675

Conversation

@morluto

@morluto morluto commented Nov 20, 2026 •

Copy link
Copy Markdown
Owner

Follow-up to #12675.

Problem

The desktop entry reader tolerates some malformed lines during field inspection. ID lookup could interpret Hidden=true in such a file as an authoritative deletion and report the application absent.

Change

Use the same field scan to retain the first malformed structure line. A hidden application override must have admitted structure before it can mask an ID. An invalid higher-priority override reports desktop_entry_invalid with its source line. Localized keys remain valid syntax, and explicit file selection and nonhidden entries retain their inspection behavior.

Validation

Two cases reproduced a false not-found result on #12675. Both now report the existing invalid-entry outcome. A passive GLib 2.88.0 probe confirmed that well-formed minimal overrides mask and the malformed forms are rejected as overrides. REA retains its invalid-entry refusal instead of selecting a lower candidate. The review follow-up also validates malformed group names without changing tolerant group boundaries. Focused tests passed with 237 successes and eight platform skips. check:fast passed.

Author readiness

  • I reviewed the final diff and relevant existing code, understand the change and its edge cases, and take responsibility for the complete PR, including AI-assisted work.
  • I checked the evidence above, confirmed it supports the current change, and recorded meaningful validation gaps.
  • I declare this PR ready for initial maintainer review.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-20T02:12:15.942561Z 71a9b83 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@greptile-apps

greptile-apps Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The reviewed changes appear safe to merge.

Summary

Hidden application overrides now report desktop_entry_invalid when the shared field scan finds malformed structure.

  • Malformed hidden application overrides now report invalid entries.

Reviews (3) · Last reviewed commit: "fix(desktop): record invalid group names..." · Reviewed by Greptile

Comment thread src/domain/desktop/desktopEntry.ts Resolved
@morluto
morluto enabled auto-merge (squash) November 20, 2026 02:13
@morluto
morluto merged commit 870f9b7 into main Nov 20, 2026
41 checks passed
@morluto
morluto deleted the audit/desktop-hidden-structural-after-12675 branch November 20, 2026 02:16
@morluto morluto added bug Something isn't working area: runtime Process capture and runtime observation labels Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: runtime Process capture and runtime observation bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant