[GH-ISSUE #1217] Some applications cannot display icons in the tray. #3184

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

Originally created by @xysgh on GitHub (Oct 25, 2025).
Original GitHub issue: https://github.com/JakeStanger/ironbar/issues/1217

Describe the bug

I use the FlClash as my proxy application.It should have an icon, but it shows up as com.follow.clash on the tray. I can see the icon in Vicinae, but not in the tray.
To reproduce
Steps to reproduce the behavior:

  1. Add module tray
  2. Open FlClash
  3. See the tray.It will show the "com.follow.clash" only,not a icon

Expected behavior

Tray Moudle can show the flclash icon successfully.
System information:

  • Distro: Gentoo Linux
  • Compositor: Hyprland
  • Ironbar version: 0.17.1

Configuration

Config
{
  "position": "top",
  "height": 34,
  "margin.top": 4,
  "margin.left": 4,
  "margin.right": 4,
  "start": [
    {
      "type": "workspaces",
      "all_monitors": false
    }
  ],
  "center": [
    {
      "type": "music",
      "player_type": "mpris",
      "format": "{title} / {artist}",
      "truncate": "end",
      "icons": {
        "play": "",
        "pause": ""
      }
    }
  ],
  "end": [
    {
      "format": [
        " {cpu_percent}% | {cpu_frequency} GHz",
        " {memory_used} / {memory_total} GB"
      ],
      "interval": {
        "cpu": 1,
        "disks": 300,
        "memory": 30,
        "networks": 3,
        "temps": 5
      },
      "type": "sys_info"
    },
    {
      "type": "volume",
      "format": "{icon} {percentage}%",
      "max_volume": 100,
      "truncate": "middle",
      "icons": {
        "volume_high": "󰕾",
        "volume_medium": "󰖀",
        "volume_low": "󰕿",
        "muted": "󰝟"
      }
    },
    {
      "type": "tray"
    },
    {
      "type": "clock",
      "format": "%Y/%m/%d %H:%M"
    },
    {
      "type": "notifications",
      "show_count": true,
      "icons": {
        "closed_none": "󰍥",
        "closed_some": "󱥂",
        "closed_dnd": "󱅯",
        "open_none": "󰍡",
        "open_some": "󱥁",
        "open_dnd": "󱅮"
      }
    }
  ]
}

Styles
I have no configuration styles.

Additional context

I don't know if this helps, I copied my FlClash Desktop file over here.

Desktop File
[Desktop Entry]
Type=Application
Name=FlClash
GenericName=FlClash
Icon=FlClash
Exec=FlClash %U
Categories=Network;
Keywords=FlClash;Clash;ClashMeta;Proxy;
StartupNotify=true

Screenshots

Image
Originally created by @xysgh on GitHub (Oct 25, 2025). Original GitHub issue: https://github.com/JakeStanger/ironbar/issues/1217 **Describe the bug** <!-- A clear and concise description of what the bug is. --> I use the FlClash as my proxy application.It should have an icon, but it shows up as com.follow.clash on the tray. I can see the icon in Vicinae, but not in the tray. **To reproduce** Steps to reproduce the behavior: 1. Add module `tray` 2. Open FlClash 3. See the tray.It will show the "com.follow.clash" only,not a icon **Expected behavior** <!-- A clear and concise description of what you expected to happen. --> Tray Moudle can show the flclash icon successfully. **System information:** - Distro: `Gentoo Linux` - Compositor: `Hyprland` - Ironbar version: `0.17.1` **Configuration** <!-- Share your bar configuration and stylesheet as applicable: --> <details><summary>Config</summary> ```json { "position": "top", "height": 34, "margin.top": 4, "margin.left": 4, "margin.right": 4, "start": [ { "type": "workspaces", "all_monitors": false } ], "center": [ { "type": "music", "player_type": "mpris", "format": "{title} / {artist}", "truncate": "end", "icons": { "play": "", "pause": "" } } ], "end": [ { "format": [ " {cpu_percent}% | {cpu_frequency} GHz", " {memory_used} / {memory_total} GB" ], "interval": { "cpu": 1, "disks": 300, "memory": 30, "networks": 3, "temps": 5 }, "type": "sys_info" }, { "type": "volume", "format": "{icon} {percentage}%", "max_volume": 100, "truncate": "middle", "icons": { "volume_high": "󰕾", "volume_medium": "󰖀", "volume_low": "󰕿", "muted": "󰝟" } }, { "type": "tray" }, { "type": "clock", "format": "%Y/%m/%d %H:%M" }, { "type": "notifications", "show_count": true, "icons": { "closed_none": "󰍥", "closed_some": "󱥂", "closed_dnd": "󱅯", "open_none": "󰍡", "open_some": "󱥁", "open_dnd": "󱅮" } } ] } ``` </details> <details><summary>Styles</summary> ```css I have no configuration styles. ``` </details> **Additional context** <!-- Add any other context about the problem here. --> I don't know if this helps, I copied my FlClash Desktop file over here. <details><summary>Desktop File</summary> ```desktop [Desktop Entry] Type=Application Name=FlClash GenericName=FlClash Icon=FlClash Exec=FlClash %U Categories=Network; Keywords=FlClash;Clash;ClashMeta;Proxy; StartupNotify=true ``` </details> **Screenshots** <!-- If applicable, add screenshots to help explain your problem. --> <img width="251" height="42" alt="Image" src="https://github.com/user-attachments/assets/dbd9ad47-2908-473f-a75f-e9af0080ac91" />
JakeStanger 2026-05-22 23:54:44 +01:00
Author
Owner

@JakeStanger commented on GitHub (Oct 25, 2025):

There have been some changes to icon resolution for the GTK4 port. Can you confirm if this still happens on the latest git version please?

<!-- gh-comment-id:3446865505 --> @JakeStanger commented on GitHub (Oct 25, 2025): There have been some changes to icon resolution for the GTK4 port. Can you confirm if this still happens on the latest git version please?
Author
Owner

@xysgh commented on GitHub (Oct 25, 2025):

GTK4 移植版的图标分辨率有一些变化。请问在最新的 Git 版本中是否还会出现这种情况?

I'm trying to build now, please wait.

<!-- gh-comment-id:3446869887 --> @xysgh commented on GitHub (Oct 25, 2025): > GTK4 移植版的图标分辨率有一些变化。请问在最新的 Git 版本中是否还会出现这种情况? I'm trying to build now, please wait.
Author
Owner

@xysgh commented on GitHub (Oct 25, 2025):

GTK4 移植版的图标分辨率有一些变化。请问在最新的 Git 版本中是否还会出现这种情况?

Yes, I built Ironbar locally, and it still can't show the FlClash tray icon.

<!-- gh-comment-id:3446876202 --> @xysgh commented on GitHub (Oct 25, 2025): > GTK4 移植版的图标分辨率有一些变化。请问在最新的 Git 版本中是否还会出现这种情况? Yes, I built Ironbar locally, and it still can't show the FlClash tray icon.
Author
Owner

@MagneFire commented on GitHub (Oct 26, 2025):

Having a similar issue with the current git version. Though not entirely the same, in my case the fallback icon is shown for the Proton application.

Image

Quick debugging makes it clear that the icon_name contains a path to an svg (/usr/lib/python3.13/site-packages/proton/vpn/app/gtk/assets/icons/state-connected.svg).

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.

I can open a new issue if that's desired.

EDIT: You can also see another issue: duplicate icons. This seems to be related to nm-applet:

2025-10-26T11:02:49.192480Z  INFO system_tray::dbus::status_notifier_watcher: 46: new host: :1.47
2025-10-26T11:02:49.193339Z  INFO system_tray::dbus::status_notifier_watcher: 141: new item: :1.8/org/ayatana/NotificationItem/nm_applet
2025-10-26T11:02:49.194633Z  INFO system_tray::dbus::status_notifier_watcher: 137: new item: :1.8/org/ayatana/NotificationItem/nm_applet (duplicate)
<!-- gh-comment-id:3448420036 --> @MagneFire commented on GitHub (Oct 26, 2025): Having a similar issue with the current git version. Though not entirely the same, in my case the fallback icon is shown for the Proton application. <img width="485" height="78" alt="Image" src="https://github.com/user-attachments/assets/ecbbce26-d27e-4487-ad56-45880b74d7f5" /> Quick debugging makes it clear that the `icon_name` contains a path to an svg (`/usr/lib/python3.13/site-packages/proton/vpn/app/gtk/assets/icons/state-connected.svg`). 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. I can open a new issue if that's desired. EDIT: You can also see another issue: duplicate icons. This seems to be related to `nm-applet`: ``` 2025-10-26T11:02:49.192480Z INFO system_tray::dbus::status_notifier_watcher: 46: new host: :1.47 2025-10-26T11:02:49.193339Z INFO system_tray::dbus::status_notifier_watcher: 141: new item: :1.8/org/ayatana/NotificationItem/nm_applet 2025-10-26T11:02:49.194633Z INFO system_tray::dbus::status_notifier_watcher: 137: new item: :1.8/org/ayatana/NotificationItem/nm_applet (duplicate) ```
Author
Owner

@JakeStanger commented on GitHub (Oct 27, 2025):

Yes I think that's a separate issue. Loading SVGs seems to need some special treatment.

Occasionally dbus will send duplicate tray items, but they shouldn't show. Are you actually seeing them duplicated in Ironbar?

<!-- gh-comment-id:3452435457 --> @JakeStanger commented on GitHub (Oct 27, 2025): Yes I think that's a separate issue. Loading SVGs seems to need some special treatment. Occasionally dbus will send duplicate tray items, but they shouldn't show. Are you actually seeing them duplicated in Ironbar?
Author
Owner

@MagneFire commented on GitHub (Oct 27, 2025):

Yes I think that's a separate issue. Loading SVGs seems to need some special treatment.

Occasionally dbus will send duplicate tray items, but they shouldn't show. Are you actually seeing them duplicated in Ironbar?

See relevant issue (https://github.com/JakeStanger/ironbar/issues/1222). In short, there are the ignored messages, it feels like a bar initialization issue as one of the icons becomes dormant. Restarting the bar sometimes fixes it.

<!-- gh-comment-id:3453374242 --> @MagneFire commented on GitHub (Oct 27, 2025): > Yes I think that's a separate issue. Loading SVGs seems to need some special treatment. > > Occasionally dbus will send duplicate tray items, but they shouldn't show. Are you actually seeing them duplicated in Ironbar? See relevant issue (https://github.com/JakeStanger/ironbar/issues/1222). In short, there are the ignored messages, it feels like a bar initialization issue as one of the icons becomes dormant. Restarting the bar sometimes fixes it.
Author
Owner

@JakeStanger commented on GitHub (May 10, 2026):

Resolved by #1479
Duplicate of #1404

<!-- gh-comment-id:4415405183 --> @JakeStanger commented on GitHub (May 10, 2026): Resolved by #1479 Duplicate of #1404
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#3184
No description provided.