Skip to content

Fix Snap desktop icon lint - #760

Merged
lidaobing merged 2 commits into
mainfrom
fix-snap-icon
Nov 23, 2026
Merged

lidaobing merged 2 commits into
mainfrom
fix-snap-icon

Conversation

@lidaobing

@lidaobing lidaobing commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

Add the 64x64 AppStream icon expected by Snapcraft when mediating the generated desktop file. The icon tree is already installed by Meson.

Summary by Sourcery

Fix Snap desktop integration by supplying the required application icon and cleaning up the Snapcraft configuration reference.

Bug Fixes:

  • Add the missing 64x64 AppStream icon required for Snap desktop-file validation.

Chores:

  • Normalize the Snapcraft configuration file reference.

@sourcery-ai

sourcery-ai Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Reviewer's Guide

Configuration

Add the 64×64 application icon required for Snapcraft desktop-file validation.

  • share/icons/hicolor/64x64/apps/io.github.iptux_src.iptux.png

Normalize the Snapcraft configuration file formatting.

  • snap/snapcraft.yaml L1 (removed lines)

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

sourcery-ai[bot]
sourcery-ai Bot previously approved these changes Nov 23, 2026

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sourcery assessment

Approved.

@github-actions

Copy link
Copy Markdown

Test Results

84 tests  ±0   84 ✅ ±0   3s ⏱️ ±0s
34 suites ±0    0 💤 ±0 
 1 files   ±0    0 ❌ ±0 

Results for commit bc6d4f4. ± Comparison against base commit 7fa7e9e.

@lidaobing

Copy link
Copy Markdown
Member Author

Superseded by separate 0.9 and main configuration merge requests.

@lidaobing lidaobing closed this Nov 23, 2026
@lidaobing lidaobing reopened this Nov 23, 2026
@codecov

codecov Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 52.68%. Comparing base (7fa7e9e) to head (c6c28ac).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #760      +/-   ##
==========================================
- Coverage   52.75%   52.68%   -0.07%     
==========================================
  Files          71       71              
  Lines        9036     9036              
==========================================
- Hits         4767     4761       -6     
- Misses       4269     4275       +6     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey - I've found 1 issue

Prompt for AI Agents
Please address the comments from this code review:

## Individual Comments

### Comment 1
<location path="snap/snapcraft.yaml" line_range="1" />
<code_context>
-snapcraft-0.9.yaml
\ No newline at end of file
+snapcraft-main.yaml
</code_context>
<issue_to_address>
**Snap indicator disappears on Unity**

When the Snap is run on a Unity desktop that requires the `unity7` interface for panel indicators, the active configuration omits the `unity7` plug that the previous Snap configuration declared. On Unity desktops where the indicator needs that interface to reach the panel, the AppIndicator created by `IptuxAppIndicator` cannot appear, so users lose the tray icon and its menu.

Retain the `unity7` plug in the active configuration if those desktops are supported.
</issue_to_address>

Sourcery assessment

Approval pending. 1 finding to address first.

Blocking findings: snap/snapcraft.yaml:1


Sourcery is free for open source - if you like our reviews please consider sharing them ✨

Comment thread snap/snapcraft.yaml
@@ -1 +1 @@
snapcraft-0.9.yaml No newline at end of file

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Medium · Snap indicator disappears on Unity

When the Snap is run on a Unity desktop that requires the unity7 interface for panel indicators, the active configuration omits the unity7 plug that the previous Snap configuration declared. On Unity desktops where the indicator needs that interface to reach the panel, the AppIndicator created by IptuxAppIndicator cannot appear, so users lose the tray icon and its menu.

Retain the unity7 plug in the active configuration if those desktops are supported.

Prompt for AI agents
In `snap/snapcraft.yaml` at line 1:

**Snap indicator disappears on Unity**

When the Snap is run on a Unity desktop that requires the `unity7` interface for panel indicators, the active configuration omits the `unity7` plug that the previous Snap configuration declared. On Unity desktops where the indicator needs that interface to reach the panel, the AppIndicator created by `IptuxAppIndicator` cannot appear, so users lose the tray icon and its menu.

Retain the `unity7` plug in the active configuration if those desktops are supported.

@lidaobing
lidaobing merged commit 15c8494 into main Nov 23, 2026
14 of 18 checks passed
@lidaobing
lidaobing deleted the fix-snap-icon branch November 23, 2026 05:01
@sonarqubecloud

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant