The .deb's multi-line store description lands in idss.desktop's Comment= — the launcher entry is unparseable and the app is absent from GNOME's app grid #1799

Closed
opened 2026-09-23 20:40:42 +00:00 by ben · 3 comments
Owner

Proven (cold install of the ff4a5263 build, laptop, 2026-09-23 18:5x NZST)

sudo apt-get install ~/idss-app/idss_0.1.0_amd64.deb (1,824,251,598 B, sha256 3e6d6a61…) printed, from the desktop-file-utils trigger:

Could not parse file "/usr/share/applications/idss.desktop": Key file contains line
?to stand up and look after its own cloud.? which is not a key-value pair, group, or comment

The installed entry:

[Desktop Entry]
Name=IDSS
Exec=/opt/IDSS/idss %U
Terminal=false
Type=Application
Icon=idss
StartupWMClass=IDSS
Comment=IDSS is the Indigenous Digital Sovereignty Stack — the app a community uses
to stand up and look after its own cloud.

Found your community on a server you rent or one you own, then add the
… (12 lines in all)
Categories=Utility;

desktop-file-validate /usr/share/applications/idss.desktop → 11 × error: file contains line "…", which is not a comment, a group or an entry.

Gio.DesktopAppInfo.new('idss.desktop') → TypeError: constructor returned NULL. GLib's key-file parser rejects the whole file, so GNOME Shell has no entry for the app: it is not in the app grid or search after a clean install. (/usr/bin/idss from the command line is unaffected.)

The previous build (528697e9, this morning) installed without the warning. The text was added today in b6e1969d — "app: the .deb says what a community gets, and points at matou.nz" — as deb.description: | (a synopsis line plus two paragraphs) in app/electron-builder.yml:76-87. That commit's intent (the store copy a person reads before installing) is right and the copy itself is right; the defect is only that the same string is also being written where a multi-line value is illegal.

Inferred (not read from electron-builder's source this session)

electron-builder 25's Linux target helper sets the desktop entry's Comment from the target's description and writes it verbatim; it does not fold newlines. The Desktop Entry spec allows exactly one line per key. The deb control file tolerates the paragraphs (fpm indents continuation lines), which is why the package installs fine and only the launcher entry breaks.

Fix

Keep the store copy where it is, and give the launcher its own one-liner. electron-builder's linux.desktop (or deb.desktop) map overrides generated keys, so:

linux:
  desktop:
    Comment: Set up and run your community's own cloud   # = deb.synopsis

(desktop.entry.Comment on electron-builder ≥ 26 — check the pinned major, ^25.1.8, before choosing the shape.) The Comment should be the synopsis, not a truncation of the description.

Guard it: extend app/tests/unit/debStoreCopy.test.ts (added in b6e1969d) with an assertion that the desktop Comment is a single line and equals deb.synopsis — the test already reads electron-builder.yml as text, so no YAML dependency. And add desktop-file-validate of the built .desktop to package-layout-check.sh (or the ADR 0168 install proof, #471/#490) so the next multi-line value cannot land silently.

Why it matters

ADR 0168's install proof is "a person double-clicks the .deb and finds IDSS in their apps". After b6e1969d they don't. This is the first thing a cold operator hits, before founding starts.

Relates to: b6e1969d, ADR 0168, #471, #490.

## Proven (cold install of the `ff4a5263` build, laptop, 2026-09-23 18:5x NZST) `sudo apt-get install ~/idss-app/idss_0.1.0_amd64.deb` (1,824,251,598 B, sha256 `3e6d6a61…`) printed, from the desktop-file-utils trigger: ``` Could not parse file "/usr/share/applications/idss.desktop": Key file contains line ?to stand up and look after its own cloud.? which is not a key-value pair, group, or comment ``` The installed entry: ``` [Desktop Entry] Name=IDSS Exec=/opt/IDSS/idss %U Terminal=false Type=Application Icon=idss StartupWMClass=IDSS Comment=IDSS is the Indigenous Digital Sovereignty Stack — the app a community uses to stand up and look after its own cloud. Found your community on a server you rent or one you own, then add the … (12 lines in all) Categories=Utility; ``` `desktop-file-validate /usr/share/applications/idss.desktop` → 11 × `error: file contains line "…", which is not a comment, a group or an entry`. `Gio.DesktopAppInfo.new('idss.desktop')` → `TypeError: constructor returned NULL`. GLib's key-file parser rejects the whole file, so GNOME Shell has **no** entry for the app: it is not in the app grid or search after a clean install. (`/usr/bin/idss` from the command line is unaffected.) The previous build (`528697e9`, this morning) installed without the warning. The text was added today in **b6e1969d** — "app: the .deb says what a community gets, and points at matou.nz" — as `deb.description: |` (a synopsis line plus two paragraphs) in `app/electron-builder.yml:76-87`. That commit's intent (the store copy a person reads before installing) is right and the copy itself is right; the defect is only that the same string is also being written where a multi-line value is illegal. ## Inferred (not read from electron-builder's source this session) electron-builder 25's Linux target helper sets the desktop entry's `Comment` from the target's `description` and writes it verbatim; it does not fold newlines. The Desktop Entry spec allows exactly one line per key. The deb *control* file tolerates the paragraphs (fpm indents continuation lines), which is why the package installs fine and only the launcher entry breaks. ## Fix Keep the store copy where it is, and give the launcher its own one-liner. electron-builder's `linux.desktop` (or `deb.desktop`) map overrides generated keys, so: ```yaml linux: desktop: Comment: Set up and run your community's own cloud # = deb.synopsis ``` (`desktop.entry.Comment` on electron-builder ≥ 26 — check the pinned major, `^25.1.8`, before choosing the shape.) The `Comment` should be the synopsis, not a truncation of the description. Guard it: extend `app/tests/unit/debStoreCopy.test.ts` (added in b6e1969d) with an assertion that the desktop `Comment` is a single line and equals `deb.synopsis` — the test already reads `electron-builder.yml` as text, so no YAML dependency. And add `desktop-file-validate` of the built `.desktop` to `package-layout-check.sh` (or the ADR 0168 install proof, #471/#490) so the next multi-line value cannot land silently. ## Why it matters ADR 0168's install proof is "a person double-clicks the .deb and finds IDSS in their apps". After b6e1969d they don't. This is the first thing a cold operator hits, before founding starts. Relates to: b6e1969d, ADR 0168, #471, #490.

swarm-claim host=bens-mac-04 run=30978
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=bens-mac-04 run=30978 (automated multi-host claim — lowest live claim id works this ticket)

Ruled by agent under ADR 0174 — veto anytime

The decision: the ticket's proposed fix (linux.desktop.Comment: …) does not work in the pinned electron-builder (^25.1.8) — the ticket flagged "check the pinned major before choosing the shape", and it turns out the shape is not available here. Empirically (app-builder-lib LinuxTargetHelper.computeDesktopEntry, ran against 25.1.8): the desktop entry spreads ...linux.desktop and then unconditionally sets Comment = getDescription() (= deb.description), so any linux.desktop.Comment is overwritten. Probe output with a desktop.Comment set AND a multi-line description:

Comment=Line one of the store copy.

Second paragraph here.

i.e. the override is ignored and the multi-line value still lands. desktop.entry.Comment is an electron-builder ≥ 26 feature; we are on 25.

So in v25 the desktop Comment and the deb control Description are the same field (both getDescription()), and it cannot be both a rich multi-line paragraph and a valid single-line launcher tooltip.

The ruling: collapse deb.description to a single line == deb.synopsis, so the generated Comment is one valid line ("Set up and run your community's own cloud"). This restores ADR 0168's install proof (the app reappears in GNOME's grid) — the severe half of the ticket. The three-paragraph store page (b6e1969d's deliberate copy) is re-homed to #1800 as an AppStream metainfo file, which is what GNOME Software actually renders on the ADR 0168 reference target (the deb control Description never was).

Why this is a two-way door: fully revertible by a later commit (restore the block, or take the metainfo/electron-builder-26 path in #1800), not on the one-way-door list (no credentials, security posture, member trust, data destruction, or spend). Provable now:

  • app/tests/unit/debStoreCopy.test.ts — the generated Comment (= deb.description in v25) is a single line with no newline and equals deb.synopsis.
  • scripts/package-layout-check.sh — extracts idss.desktop from the built .deb and asserts every non-blank line is a group/comment/key=value pair (catches a multi-line value directly), then runs desktop-file-validate when present. So the next multi-line value cannot land silently.

Copy for the follow-up (the exact paragraphs) is preserved in b6e1969d and referenced from #1800.

## Ruled by agent under ADR 0174 — veto anytime **The decision:** the ticket's proposed fix (`linux.desktop.Comment: …`) does **not** work in the pinned electron-builder (`^25.1.8`) — the ticket flagged "check the pinned major before choosing the shape", and it turns out the shape is not available here. Empirically (app-builder-lib `LinuxTargetHelper.computeDesktopEntry`, ran against 25.1.8): the desktop entry spreads `...linux.desktop` and *then* unconditionally sets `Comment = getDescription()` (= `deb.description`), so any `linux.desktop.Comment` is overwritten. Probe output with a `desktop.Comment` set AND a multi-line description: ``` Comment=Line one of the store copy. Second paragraph here. ``` i.e. the override is ignored and the multi-line value still lands. `desktop.entry.Comment` is an electron-builder ≥ 26 feature; we are on 25. **So in v25 the desktop `Comment` and the deb control `Description` are the same field** (both `getDescription()`), and it cannot be both a rich multi-line paragraph and a valid single-line launcher tooltip. **The ruling:** collapse `deb.description` to a single line **== `deb.synopsis`**, so the generated `Comment` is one valid line ("Set up and run your community's own cloud"). This restores ADR 0168's install proof (the app reappears in GNOME's grid) — the severe half of the ticket. The three-paragraph store **page** (b6e1969d's deliberate copy) is re-homed to **#1800** as an AppStream metainfo file, which is what GNOME Software actually renders on the ADR 0168 reference target (the deb control Description never was). **Why this is a two-way door:** fully revertible by a later commit (restore the block, or take the metainfo/electron-builder-26 path in #1800), not on the one-way-door list (no credentials, security posture, member trust, data destruction, or spend). Provable now: - `app/tests/unit/debStoreCopy.test.ts` — the generated `Comment` (= `deb.description` in v25) is a single line with no newline and equals `deb.synopsis`. - `scripts/package-layout-check.sh` — extracts `idss.desktop` from the built .deb and asserts every non-blank line is a group/comment/`key=value` pair (catches a multi-line value directly), then runs `desktop-file-validate` when present. So the next multi-line value cannot land silently. Copy for the follow-up (the exact paragraphs) is preserved in b6e1969d and referenced from #1800.

close-report for #1799 — status success

✅ close-report gates passed — every claim verified against main; issue closed.

envelope
{
  "issue": 1799,
  "status": "success",
  "commits": [
    "e6b373d1"
  ],
  "changed_files": [
    "STATUS.md",
    "app/electron-builder.yml",
    "app/tests/unit/debStoreCopy.test.ts",
    "scripts/package-layout-check.sh"
  ],
  "tests": [
    {
      "command": "cd app && npx vitest run tests/unit/debStoreCopy.test.ts",
      "exit_code": 0
    },
    {
      "command": "cd app && npx eslint tests/unit/debStoreCopy.test.ts",
      "exit_code": 0
    },
    {
      "command": "bash -n scripts/package-layout-check.sh",
      "exit_code": 0
    }
  ],
  "criteria": {
    "The desktop entry parses / app returns to GNOME's app grid (ADR 0168 install proof)": "app/electron-builder.yml: deb.description collapsed to a single line == deb.synopsis, so app-builder-lib writes a single-line desktop Comment (empirically verified against 25.1.8's computeDesktopEntry); scripts/package-layout-check.sh now extracts idss.desktop and refuses any non-key line (a multi-line value) plus runs desktop-file-validate when present.",
    "Store copy kept (its intent), launcher gets its own one-liner": "Comment == synopsis 'Set up and run your community's own cloud'; the three-paragraph store copy re-homed to #1800 (AppStream metainfo, the surface GNOME Software renders) under an ADR 0174 ruling posted to #1799, because the ticket's linux.desktop.Comment fix is inoperative in the pinned electron-builder ^25.1.8 (proven).",
    "Guard: desktop Comment is a single line == deb.synopsis": "app/tests/unit/debStoreCopy.test.ts new case asserts the Comment (= deb.description in v25) has no newline and equals deb.synopsis; 5/5 tests green.",
    "Guard: desktop-file-validate of the built .desktop in package-layout-check.sh": "scripts/package-layout-check.sh step 7 added — line-shape assertion (catches multi-line values with no tool) + desktop-file-validate when on PATH."
  },
  "summary": "Collapsed the .deb store description to a single line so the generated desktop Comment parses and IDSS returns to GNOME's app grid, with source + build guards against the next multi-line value.",
  "blockers": []
}
**close-report** for #1799 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1799, "status": "success", "commits": [ "e6b373d1" ], "changed_files": [ "STATUS.md", "app/electron-builder.yml", "app/tests/unit/debStoreCopy.test.ts", "scripts/package-layout-check.sh" ], "tests": [ { "command": "cd app && npx vitest run tests/unit/debStoreCopy.test.ts", "exit_code": 0 }, { "command": "cd app && npx eslint tests/unit/debStoreCopy.test.ts", "exit_code": 0 }, { "command": "bash -n scripts/package-layout-check.sh", "exit_code": 0 } ], "criteria": { "The desktop entry parses / app returns to GNOME's app grid (ADR 0168 install proof)": "app/electron-builder.yml: deb.description collapsed to a single line == deb.synopsis, so app-builder-lib writes a single-line desktop Comment (empirically verified against 25.1.8's computeDesktopEntry); scripts/package-layout-check.sh now extracts idss.desktop and refuses any non-key line (a multi-line value) plus runs desktop-file-validate when present.", "Store copy kept (its intent), launcher gets its own one-liner": "Comment == synopsis 'Set up and run your community's own cloud'; the three-paragraph store copy re-homed to #1800 (AppStream metainfo, the surface GNOME Software renders) under an ADR 0174 ruling posted to #1799, because the ticket's linux.desktop.Comment fix is inoperative in the pinned electron-builder ^25.1.8 (proven).", "Guard: desktop Comment is a single line == deb.synopsis": "app/tests/unit/debStoreCopy.test.ts new case asserts the Comment (= deb.description in v25) has no newline and equals deb.synopsis; 5/5 tests green.", "Guard: desktop-file-validate of the built .desktop in package-layout-check.sh": "scripts/package-layout-check.sh step 7 added — line-shape assertion (catches multi-line values with no tool) + desktop-file-validate when on PATH." }, "summary": "Collapsed the .deb store description to a single line so the generated desktop Comment parses and IDSS returns to GNOME's app grid, with source + build guards against the next multi-line value.", "blockers": [] } ``` </details>
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Matou/idss#1799
No description provided.