[GH-ISSUE #146] Focused and Launcher modules attempt to render unknown image types. #1479

Closed
opened 2026-05-22 22:52:35 +01:00 by JakeStanger · 3 comments
Owner

Originally created by @A-Cloud-Ninja on GitHub (May 8, 2023).
Original GitHub issue: https://github.com/JakeStanger/ironbar/issues/146

Describe the bug
Possibly due to flatpak'd versions of Spotify and Discord (and otherwise icon-missing applications), apps that don't properly have an icon do not get verified, and an error is printed.
To Reproduce
Steps to reproduce the behavior:

  1. Use launcher or focused with show_icon
  2. Have an app that either doesn't have an icon or otherwise isn't in the correct location
  3. Launch ironbar, observe errors upon loading icons for the app.

Expected behavior
Either a warning and/or discarding or sanitizing of related items

System information:

  • Distro: Arch
  • Compositor: Hyprland
  • Ironbar version: Ironbar version 0.12.1 via ironbar --version on aur/ironbar-git

Configuration
https://f.cloudninja.pw/ironbar_config.json

Screenshot
SuccinctIncompetentKoala

Originally created by @A-Cloud-Ninja on GitHub (May 8, 2023). Original GitHub issue: https://github.com/JakeStanger/ironbar/issues/146 **Describe the bug** Possibly due to flatpak'd versions of Spotify and Discord (and otherwise icon-missing applications), apps that don't properly have an icon do not get verified, and an error is printed. **To Reproduce** Steps to reproduce the behavior: 1. Use launcher or focused with show_icon 2. Have an app that either doesn't have an icon or otherwise isn't in the correct location 3. Launch ironbar, observe errors upon loading icons for the app. **Expected behavior** Either a warning and/or discarding or sanitizing of related items **System information:** - Distro: Arch - Compositor: Hyprland - Ironbar version: `Ironbar version 0.12.1` via `ironbar --version` on `aur/ironbar-git` **Configuration** https://f.cloudninja.pw/ironbar_config.json **Screenshot** ![SuccinctIncompetentKoala](https://user-images.githubusercontent.com/5809177/236894723-ab739d9c-fbf1-490e-b0c4-a046ae755309.png)
Author
Owner

@JakeStanger commented on GitHub (May 9, 2023):

Will improve the error handling around this to try and rule out some of the non-errors, reduce missing images to warnings, and avoid printing the full stack.

<!-- gh-comment-id:1540862781 --> @JakeStanger commented on GitHub (May 9, 2023): Will improve the error handling around this to try and rule out some of the non-errors, reduce missing images to warnings, and avoid printing the full stack.
Author
Owner

@TheSunCat commented on GitHub (May 28, 2023):

When focusing an app for which it cannot find an icon (though Anyrun does find the icon), ironbar does indeed just print a warning, however it still renders the icon for the last focused app.

For example, if I move focus from Firefox to Supersonic (AUR package supersonic-desktop), ironbar fails to find Supersonic's icon and instead renders Firefox's icon.

<!-- gh-comment-id:1566107655 --> @TheSunCat commented on GitHub (May 28, 2023): When focusing an app for which it cannot find an icon (though Anyrun does find the icon), ironbar does indeed just print a warning, however it still renders the icon for the last focused app. For example, if I move focus from Firefox to Supersonic (AUR package `supersonic-desktop`), ironbar fails to find Supersonic's icon and instead renders Firefox's icon.
Author
Owner

@JakeStanger commented on GitHub (May 28, 2023):

Thanks for reporting. I've opened an issue to track that and should get it sorted soon.

<!-- gh-comment-id:1566145231 --> @JakeStanger commented on GitHub (May 28, 2023): Thanks for reporting. I've opened an issue to track that and should get it sorted soon.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
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
JakeStanger/ironbar#1479
No description provided.