[GH-ISSUE #8] we shoule be exposing DBusMenu aboutToShow #2

Closed
opened 2026-05-22 22:04:46 +01:00 by JakeStanger · 0 comments
Owner

Originally created by @ogios on GitHub (Jan 24, 2025).
Original GitHub issue: https://github.com/JakeStanger/system-tray/issues/8

#[dbus_proxy(interface = "com.canonical.dbusmenu", assume_defaults = true)]
trait DBusMenu {
    fn about_to_show(&self, id: i32) -> zbus::Result<bool>;
}

this is really important, one should call this when opening menu(and submenu?)

for example xwaylandvideobridge, we can not get the menu until this is called.

https://github.com/user-attachments/assets/8f6a54dc-a9db-484c-9f17-f9d2d0136a47

Originally created by @ogios on GitHub (Jan 24, 2025). Original GitHub issue: https://github.com/JakeStanger/system-tray/issues/8 ``` #[dbus_proxy(interface = "com.canonical.dbusmenu", assume_defaults = true)] trait DBusMenu { fn about_to_show(&self, id: i32) -> zbus::Result<bool>; } ``` this is really important, one should call this when opening menu(and submenu?) for example xwaylandvideobridge, we can not get the menu until this is called. https://github.com/user-attachments/assets/8f6a54dc-a9db-484c-9f17-f9d2d0136a47
Sign in to join this conversation.
No labels
pull-request
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/system-tray#2
No description provided.