- SetDesktopTrayIcon(path) swaps the tray icon at runtime (empty restores
the icon InitDesktopTray resolved): the emblem/attention state apps show
while unseen notifications wait. gtk_dl gains gtk_status_icon_set_from_file.
- SendNotificationAction + PollNotificationAction extend the notification
API with one action button per popup on the GDBus backend: Notify's
daemon id is kept with the caller's URL, an ActionInvoked subscription
resolves the click, and Poll hands (action, url) to the app's main loop
while pumping the dispatch context so it also works without one. Other
backends degrade to the plain send.
- go/kryui: bindings (SetNotificationAppName, NotificationSupported,
SendNotificationAction, PollNotificationAction, SetDesktopTrayIcon).
One raylib-style API in notification.h (SendNotification,
SendNotificationEx with tag/id/priority, CancelNotification,
CancelAllNotifications, permission probing, SetNotificationAppName),
three real backends in src/notification/notification.c:
- Android: pure JNI through the native activity -- channels on API 26+,
legacy Builder priorities on 21-25, areNotificationsEnabled /
POST_NOTIFICATIONS runtime request on 24+/33+. No Java-side code
required, so any kryon app gets notifications unchanged.
- Web: the browser Notification API via EM_JS, with an id registry so
cancel works.
- Desktop Linux: org.freedesktop.Notifications over GDBus
(KRYON_NOTIFICATION_GDBUS + gio-2.0; mk/vendor.mk exports the probe
flags). urgency + desktop-entry hints from the priority and app name.
- Everything else: honest stub (supported=0).
Verified: desktop path end-to-end against a live xfce Notifyd
(supported=1 send=1), stub branch syntax-clean, full kryon test suite
green.