mirror of
https://github.com/fromchat-messenger/app.git
synced 2026-11-17 11:21:37 +03:00
b528fd1f81
On any DE hosting StatusNotifierItem (GNOME 46+/55 with the AppIndicator extension, KDE, etc.) the shell now hosts both the icon and the menu: we export org.kde.StatusNotifierItem + com.canonical.dbusmenu over dbus-java (pure Kotlin) and register with StatusNotifierItemWatcher. GNOME renders the popup itself from our DbusMenu tree (Connected | sep | Show | About FromChat | sep | Quit); label changes go out as ItemsPropertiesUpdated. AWT/XEmbed stays as fallback for X11-only shells; Windows/macOS untouched. dbus-java quirks resolved in pure Kotlin (details in tray-sni/DESIGN.md): properties are served by a hand-rolled org.freedesktop.DBus.Properties impl with explicit-signature Variants (DBusBoundProperty cannot express a(iiay) from Kotlin), and outer return structs (GetLayout/AboutToShowGroup) implement DBusSerializable to dodge the erased-field export XML bug. Verified on Ubuntu ARM64 VM: registers on the real session bus; icon in the GNOME panel; native menu opens; Show/About/Quit callbacks reach the app on the EDT; hardware-accelerated rendering unchanged (0 fallbacks, 0 shader errors).
b528fd1f81
·
2026-10-19 19:14:36 +03:00
History