← Back to issue list

snapcraft mishandles .PNG extension

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1843147
Type
issue
State
open
Author
~merlijn-sebrechts
Labels
—
Created
Updated
Closed
—

Current evaluation

Uppercase .PNG icons are copied as icon.PNG, and changing icon formats leaves stale files beside the new icon; current asset handling appears vulnerable and needs maintainer triage.

Suggested action: needs triage

Reason: The issue has no labels, assignee, comments, or maintainer response, so it has not been assessed. The report is concrete, and current setup_assets.py derives destination extensions from the input suffix and copies all snap/gui files while unlinking only same-named destinations, supporting the reported uppercase and stale-file behavior.

Evaluated by: mr-cal-bot

Impact: 34 Quick Win: 17 Complexity: 40 Confidence: 88 Actionability: 82

Issue body

According to https://snapcraft.io/docs/snap-format, the correct extensions for an icon are `.png` and `.svg`. However, if you use the .PNG extension (all caps), snapcraft still treats it as if it's a valid extension and copies it to /meta/gui/icon.PNG. If you then change the icon, to an svg file for example, and re-run snapcraft, it will not remove the `icon.PNG` file, instead /meta/gui/icon.svg and /meta/gui/icon.PNG will now both exist.

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha
Impact: 34
Quick Win: 17
Complexity: 40
Confidence: 88
Actionability: 82
needs triage Uppercase .PNG icons are copied as icon.PNG, and changing icon formats leaves stale files beside the new icon; current asset handling appears vulnerable and needs maintainer triage.
qwen/qwen3.6-35b-a3b
Impact: 30
Quick Win: 13
Complexity: 30
Confidence: 70
Actionability: 60
keep open Snapcraft accepts uppercase .PNG icon extensions and fails to remove stale icon files when the icon is changed, leaving both old and new icons in meta/gui.
qwen/qwen3.8-27b
Impact: 35
Quick Win: 21
Staleness: 95
Complexity: 40
Confidence: 45
Support Request: 10
needs triage Snapcraft accepts uppercase .PNG icon extension and fails to remove stale icon files when the icon type changes, leaving both old and new icons in /meta/gui/. No maintainer interaction since filing ~7 years ago.
qwen/qwen3.6-35b-a3b
Staleness: 95
Complexity: 15
Confidence: 85
Support Request: 10
close stale Snapcraft incorrectly handles uppercase .PNG extensions, copying them to /meta/gui/ and failing to remove them when switching to .svg. The issue has seen no maintainer activity or comments in over six years.
qwen/qwen3.6-35b-a3b
Staleness: 98
Complexity: 30
Confidence: 85
Support Request: 10
close stale Reports snapcraft mishandling uppercase .PNG extensions and failing to remove orphaned icon files during updates. Zero maintainer engagement over six years.
qwen3.6-35b-a3b-mtp-q6
Staleness: 95
Complexity: 40
Confidence: 85
Support Request: 10
close stale Reports snapcraft incorrectly handling uppercase .PNG icon extensions and failing to remove them when switching to .svg. Unanswered for nearly 7 years.

Update history

Date Change
created

Related issues

No related issues found above the similarity threshold.