Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tray with libdbusmenu-gtk3 is buggy #791

Open
freijon opened this issue Nov 25, 2024 · 3 comments
Open

Tray with libdbusmenu-gtk3 is buggy #791

freijon opened this issue Nov 25, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@freijon
Copy link

freijon commented Nov 25, 2024

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:

2024-11-25T05:06:30.093663Z WARN GTK: 112: [LIBDBUSMENU-GLIB] Unable to get session bus: Operation was cancelled
2024-11-25T05:06:32.540958Z ERROR GTK: 111: [LIBDBUSMENU-GLIB] CRITICAL: dbusmenu_menuitem_send_about_to_show: assertion 'DBUSMENU_IS_MENUITEM(mi)' failed

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:

  1. Click on a tray icon (I'm using the one from Steam)
  2. Nothing happens
  3. Check the stdout

Expected behavior
The menu opens all the time.

System information:

  • Distro: Gentoo
  • Compositor: niri
  • Ironbar version: 0.16.1
@freijon freijon added the bug Something isn't working label Nov 25, 2024
@JakeStanger
Copy link
Owner

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
Copy link
Author

freijon commented Nov 25, 2024

Interesting thought!
I gave it a try with Hyprland. Observations:

  • The warning message from my initial post is always there and apparently has nothing to do with the issue
  • At first, I was not able to reproduce the issue. But it seems when I kill ironbar, freshly start it and directly go for the tray menu, it will fail. The error message was the same on Hyprland
  • After ironbar is running for a while, it seems the tray menu fixes itself and it starts working (permanently?). This is where it seems niri behaves differently than Hyprland. With niri it felt like on/off randomly whereas in Hyprland it was first off, then on

P.S. with 0.16.0 I had no such issues

@quietvoid
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants