← Back to issue list

the desktop attribute from snapcraft.yaml ends up in snap.yaml

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1656487
Type
issue
State
closed
Author
~elopio
Labels
snap-desktop-issue
Created
Updated
Closed

Current evaluation

Fixed by snapcore/snapcraft PR #1053 ("meta: ensure snap.yaml is desktop free"), merged and confirmed by osomon in Jan 2017; the desktop: key is stripped from generated meta/snap.yaml and shipped in snapcraft 2.26.

Resolution: closed resolved

Reason: The `desktop` key leaking into generated snap.yaml was fixed in merged PR #1053 (commit b72c3a3bd), which strips the non-spec key while still copying the .desktop file to meta/gui/. Maintainers verified with a master build and released it in 2.26, so the launchpad issue was closed as resolved.

Evaluated by: mr-cal-bot

No scores available.

Issue body

I made a snapcraft.yaml with a desktop attribute in an app. After creating the snap, this attribute is copied to snap.yaml: $ cat /snap/keepassxc/current/meta/snap.yaml apps: keepassxc: command: command-keepassxc.wrapper desktop: share/applications/keepassxc.desktop <--- ****BUG**** plugs: - unity7 - opengl - gsettings - home architectures: - amd64 confinement: strict description: | KeePassXC is an application for people with extremly high demands on secure personal data management. It has a light interface, is cross platform and published under the terms of the GNU General Public License. grade: stable name: keepassxc summary: "community driven port of the windows application \u201CKeepass Password\ \ Safe\u201D" version: develop That is wrong because the snap.yaml specification doesn't include a desktop attribute. It should be stripped during the creation of the snap.

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Fixed by snapcore/snapcraft PR #1053 ("meta: ensure snap.yaml is desktop free"), merged and confirmed by osomon in Jan 2017; the desktop: key is stripped from generated meta/snap.yaml and shipped in snapcraft 2.26.
stealth/space-bunny-alpha — closed resolved Fixed by merged snapcore/snapcraft#1053 (commit b72c3a3bd), which removes the app desktop key from generated snap.yaml while preserving desktop integration.
stealth/space-bunny-alpha — closed stale Closed after years of inactivity without a code fix; the matching Launchpad bug is also closed and considered likely abandoned. No resolving PR or commit was identified.
qwen/qwen3.6-35b-a3b — — Closed and likely abandoned due to inactivity. The desktop attribute incorrectly propagated from snapcraft.yaml to snap.yaml during build should be stripped per specification.
qwen/qwen3.6-35b-a3b — — Closed without resolution or discussion. The reported bug where the desktop attribute incorrectly copies from snapcraft.yaml to snap.yaml remains unaddressed.

Update history

Date Change
created

Related work

  • Likely Fixed By: canonical/snapcraft#1053 (confidence 97%)

    Merged PR referenced by sergiusens in the issue; titled 'meta: ensure snap.yaml is desktop free', landed as commit b72c3a3bd and released in snapcraft 2.26.

Related issues

Issue Project State Summary Similarity
#1053 meta: ensure snap.yaml is desktop free snapcraft merged Merged PR #1053 removes desktop-file metadata from generated snap.yaml; the fix landed in commit b72c3a3bd.
80%