[GH-ISSUE #1221] Tray: SVG icons do not load #3186

Closed
opened 2026-05-22 23:54:44 +01:00 by JakeStanger · 0 comments
Owner

Originally created by @MagneFire on GitHub (Oct 27, 2025).
Original GitHub issue: https://github.com/JakeStanger/ironbar/issues/1221

Describe the bug

Applications that use an SVG (or perhaps other local path based images) instead of a symbolic name seem to fallback to the disconnected icon.

Using the already existing image provider helps in fixing this issue: https://github.com/JakeStanger/ironbar/compare/master...MagneFire:fix/tray-use-picture?expand=1. But I couldn't get this to work for the Update event.

To reproduce
Steps to reproduce the behavior:

  1. Ensure the tray module is enabled
  2. Install an app that uses SVGs like ProtonApp (paru -S proton-vpn-gtk-app)
  3. Observe the disconnected icon

Expected behavior

System information:

  • Distro: Arch Linux
  • Compositor: Sway
  • Ironbar version: git-2159aac

Configuration

Config
let {
    $tray = {
        type = "tray"
        class = "module module-tray"
        icon_size = 24
        direction = "h"
    }
}


in {
    position = "top"
    height = 1
    layer = "top"
    icon_theme = "Papirus"

    start = [  ]
    center = [ $tray ]
    end = [ ]
}

Screenshots

Image
Originally created by @MagneFire on GitHub (Oct 27, 2025). Original GitHub issue: https://github.com/JakeStanger/ironbar/issues/1221 **Describe the bug** Applications that use an SVG (or perhaps other local path based images) instead of a symbolic name seem to fallback to the disconnected icon. Using the already existing image provider helps in fixing this issue: https://github.com/JakeStanger/ironbar/compare/master...MagneFire:fix/tray-use-picture?expand=1. But I couldn't get this to work for the `Update` event. **To reproduce** Steps to reproduce the behavior: 1. Ensure the tray module is enabled 2. Install an app that uses SVGs like ProtonApp (`paru -S proton-vpn-gtk-app`) 3. Observe the disconnected icon **Expected behavior** <!-- A clear and concise description of what you expected to happen. --> **System information:** - Distro: Arch Linux - Compositor: Sway - Ironbar version: git-2159aac **Configuration** <!-- Share your bar configuration and stylesheet as applicable: --> <details><summary>Config</summary> ``` let { $tray = { type = "tray" class = "module module-tray" icon_size = 24 direction = "h" } } in { position = "top" height = 1 layer = "top" icon_theme = "Papirus" start = [ ] center = [ $tray ] end = [ ] } ``` </details> **Screenshots** <img width="485" height="78" alt="Image" src="https://github.com/user-attachments/assets/ecbbce26-d27e-4487-ad56-45880b74d7f5" />
JakeStanger 2026-05-22 23:54:44 +01:00
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#3186
No description provided.