Skip to content

Icons resolved from icon theme still prints error messages #6364

Description

@lunacd

Check existing issues

  • I've verified that this bug isn't described by any existing issues.

Bug description

In this PR, this copilot review seems legit. After the icon is successfully resolved from icon theme, icon local variable is not updated and the subsequent check still fails.

Steps to reproduce

  • Create snapcraft.yaml that produces $CRAFT_PRIME/usr/share/icons/hicolor/256x256/app/example.png
  • Create a desktop file with Icon=example
  • Run snapcraft pack
  • Observe that it incorrectly prints
Icon 'example' specified in desktop file 'usr/share/applications/example.desktop' not found in prime directory.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions