Skip to content

Conversation

@blinxen
Copy link

@blinxen blinxen commented Oct 13, 2025

I recently switched from i3 to sway and found out about the missing dbus menu support in swaybar (issue).

From what I understood, the initial implementation was done in #5161 then continued in #6249 then continued in #8405 then continued in #8698 🤔. However, it seems that the last two PRs (#8405 and #8698) are just people trying to rebase the PR to master, with some minor changes suggested in comments. I would like this to get merged so I decided to take ownership of this change and see it through the end.

In addition to the previous state, the following changes were added:

  • Fix a bug where swaybar would crash when the dbus menu is open but the underlying process (e.g. nm-applet) was closed.
  • Add recursion guard (Tray D-Bus Menu #8405 (comment))
  • Rename some global functions to adhere to the style guide

I have not reviewed all changes that are included in this PR since I saw that a lot of people already put a lot of work into that.

Let me know if I can do anything to speed up the review process or if I should adjust / fix any issues with this PR.

@blinxen blinxen changed the title Tray D-Bus Menu Tray D-Bus Menu (fifth time the charm) Oct 13, 2025
@blinxen
Copy link
Author

blinxen commented Oct 13, 2025

One thing which I am unsure about is the namings of the functions in dbusmenu.c. A lot of them have sway_ or dbusmenu_ prefixes even though they are static. I am inclined to remove these prefixes since the functions are just local. Any thoughts?

@Thiago-Assis-T

This comment was marked as duplicate.

@aurum77

This comment was marked as duplicate.

@radovim
Copy link

radovim commented Dec 7, 2025

When can we expect this feature to be merged?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

6 participants