mirror of
https://github.com/JakeStanger/ironbar.git
synced 2026-07-11 09:15:22 +01:00
[GH-ISSUE #791] Tray with libdbusmenu-gtk3 is buggy #5871
Labels
No labels
A:Build
A:CI
A:Client
A:Config
A:Core
A:Documentation
A:Documentation
A:IPC
A:Testing
A:UX/UI
blocked
BREAKING CHANGE
duplicate
good first issue
GTK4
help wanted
invalid
M:Battery
M:Battery
M:Bindmode
M:Bluetooth
M:Brightness
M:Cairo
M:Clipboard
M:Clock
M:Clock
M:Custom
M:Focused
M:Keyboard
M:Launcher
M:Menu
M:Music
M:Music
M:Music
M:Network Manager
M:Notifications
M:SysInfo
M:Tray
M:Volume
M:Workspaces
partially resolved
P:Critical
P:High
P:Low
P:Medium
pull-request
T:Bug
T:Bug
T:Core Enhancement
T:Module Enhancement
T:New Module
T:Question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
JakeStanger/ironbar#5871
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @freijon on GitHub (Nov 25, 2024).
Original GitHub issue: https://github.com/JakeStanger/ironbar/issues/791
Describe the bug
I'm upgrading the Gentoo package to the new version but I've noticed that the tray behaves strangely. When I click the tray icon then most of the time, nothing happens. I have these warnings/errors in the stdout:
But on other times it works fine and the menu is shown. Sometimes it also works once and then stops working.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The menu opens all the time.
System information:
@JakeStanger commented on GitHub (Nov 25, 2024):
It seems odd that'd be tempermental, but this to me reads like an environmental issue. Perhaps a race condition between Ironbar starting and your dbus session (env vars) loading. There have been other Niri-specific tray issues recently too.
Are you able to confirm if this is still an issue for yourself on another compositor please?
@freijon commented on GitHub (Nov 25, 2024):
Interesting thought!
I gave it a try with
Hyprland. Observations:ironbar, freshly start it and directly go for the tray menu, it will fail. The error message was the same onHyprlandironbaris running for a while, it seems the tray menu fixes itself and it starts working (permanently?). This is where it seemsniribehaves differently thanHyprland. Withniriit felt like on/off randomly whereas inHyprlandit was first off, then onP.S. with 0.16.0 I had no such issues
@quietvoid commented on GitHub (Nov 30, 2024):
On Sway I often get issues when turning my monitors back on.
For the tray it happens that old apps are still shown and I have to reopen ironbar.
@JakeStanger commented on GitHub (Sep 18, 2025):
I think I've managed to catch this, after spending far too long debugging the GTK 4 port before realising it was this bug.
The tray client sent menu connect events to the first tray module to connect, but then didn't re-send those for others. The result of this was that the menus would work correctly on one (somewhat random) bar, but not others. The linked PR ensures the events are properly sent to all tray module instances.
I'm going to close this issue when I merge the PR, but if you do still have issues I'll re-open for now. If it is something different, I probably won't fix it on the GTK 3 version as the GTK 4 branch is nearing completion and won't use
libdbusmenu-gtk3.