[GH-ISSUE #2] Can only have 1 instance of icon tray at a time #8434

Closed
opened 2026-05-23 03:52:06 +01:00 by JakeStanger · 3 comments
Owner

Originally created by @JakeStanger on GitHub (Aug 14, 2022).
Original GitHub issue: https://github.com/JakeStanger/ironbar/issues/2

Adding the icon tray to multiple bars (for multi-monitor) throws exceptions, and only the first added one shows.

Originally created by @JakeStanger on GitHub (Aug 14, 2022). Original GitHub issue: https://github.com/JakeStanger/ironbar/issues/2 Adding the icon tray to multiple bars (for multi-monitor) throws exceptions, and only the first added one shows.
Author
Owner

@JakeStanger commented on GitHub (Aug 25, 2022):

Now that Sway is using lazy_static & broadcast channels, same method could be employed here

<!-- gh-comment-id:1227755951 --> @JakeStanger commented on GitHub (Aug 25, 2022): Now that Sway is using lazy_static & broadcast channels, same method could be employed here
Author
Owner

@JakeStanger commented on GitHub (Sep 25, 2022):

#19 introduces a partial fix for this. Module instances all now share the same dbus client, so all receive the same events post-startup.

Unfortunately since the the tray is initialised when the first instance loads, this means only the first monitor will receive the full list of icons on startup currently.

<!-- gh-comment-id:1257285683 --> @JakeStanger commented on GitHub (Sep 25, 2022): #19 introduces a partial fix for this. Module instances all now share the same dbus client, so all receive the same events post-startup. Unfortunately since the the tray is initialised when the first instance loads, this means only the first monitor will receive the full list of icons on startup currently.
Author
Owner

@JakeStanger commented on GitHub (Jan 30, 2023):

It's still not guaranteed that the icon tray will be fully loaded due to some race condition, but #60 at least guarantees all the icons will be the same across all trays.

<!-- gh-comment-id:1409133245 --> @JakeStanger commented on GitHub (Jan 30, 2023): It's still not guaranteed that the icon tray will be fully loaded due to some race condition, but #60 at least guarantees all the icons will be the same across all trays.
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#8434
No description provided.