Products › lamco-dsi-tools › Interfaces › Wayland registry

Wayland registry: How to list the protocols a compositor offers

The Wayland registry (wl_registry) is where a compositor lists every protocol it offers: How it works, and how to record and compare it with lamco-dsi-tools.

Wayland wl_registry

The Wayland registry, wl_registry, is the list of global objects a Wayland compositor announces to each client: Every protocol it offers, by interface name and version, and one wl_output for each monitor. Every Wayland program reads it first, and it's the direct answer to "which Wayland protocols does my compositor support". lamco-dsi-tools (DSI: Desktop session interfaces) reads the registry in-process, records every global exactly as advertised, and compares it between desktops, versions and upgrades.

What it is

A client connects to the socket WAYLAND_DISPLAY names in XDG_RUNTIME_DIR, and calls get_registry on wl_display. The registry answers with one global event per global object, each carrying a numeric name, the interface's name as a string, and the highest version the compositor implements. A client that wants one calls bind with that name and the version it speaks, and from then on talks to the object. When a global goes away, as a wl_output does when a monitor is unplugged, the registry sends global_remove with its name, and a new monitor arrives as a new global.

Nearly everything else on these pages starts here. A screen capture tool looks for ext_image_copy_capture_manager_v1 or zwlr_screencopy_manager_v1, a clipboard manager for ext_data_control_manager_v1 or zwlr_data_control_manager_v1, and an input tool for the virtual keyboard and pointer managers. If the global isn't in the registry, the client can't use the protocol, whatever the compositor's documentation says.

Two things limit what one reading shows. The list is per client, since libwayland-server lets a compositor filter which globals each client sees, so a privileged protocol can be offered to one program and hidden from another. And the version is the compositor's ceiling, not the version a given client uses. The portal-based routes of GNOME and KDE don't appear here at all, since they're on D-Bus: A capture protocol missing from their registry is how those desktops are built.

Which desktops offered it

Every desktop answers on the registry, and the matrix's "Compositor and protocols" row, which rests on the registry and the compositor's identity, reads working on all nine:

DesktopState
GNOME Shell 48.7 (Debian 13)working
GNOME Shell 51.0 (Fedora 45)working
KDE Plasma, KWin 6.5.6 (NixOS)working
KDE Plasma, KWin 6.8.2 (KDE neon)working
Sway 1.9working
Hyprland 0.56.2working
COSMIC, cosmic-comp 1.0.0working
labwc 0.20.3 (Budgie session, CachyOS)working
Cinnamon Wayland session (Linux Mint)working

Each column is one capture of one version of the desktop on one virtual machine, taken on 2026-11-27 or 2026-11-28 with dsisee observe. The Wayland protocol rows on the other interface pages rest on what each registry held, and on frames and selections where a dissector exercised them. The Hyprland capture also raised ENV-001, since a version command gave no answer.

The README's run record lists wayland diagnose on Sway 1.9 and on KDE Plasma 6.5.6, and captures of the fleet of nine desktops above.

How to check it with lamco-dsi-tools

dsisee wayland protocols                                # every global as advertised, then sorted by what it's for
dsisee wayland protocols --json                         # the same capture as JSON on standard output
dsisee wayland diagnose                                 # the compositor's process and version, each with its source
dsitell compare before.json after.json --fail-on interfaces   # a global gone or at a lower version exits 1
dsitell matrix sway.json gnome.json kde.json --markdown # several desktops side by side

The wayland-registry dissector writes one record per global with its name, interface and version, exactly as the compositor sent them. dsisee wayland protocols then sorts the globals by a built-in table that says what each protocol is for and which family it belongs to, and marks the sorting as an interpretation: It ranks nothing and calls nothing missing. dsitell compare lists every global or portal interface the baseline advertises that the candidate doesn't, or advertises at a lower version, under its interfaces class, and doesn't compare globals at all when one side didn't read the registry. A capture taken where WAYLAND_DISPLAY wasn't set, as from a remote shell, shows every route through the display as not examined, never as absent.

Findings

  • WL-001: No Wayland display in this session.
  • WL-002: The Wayland display didn't answer.
  • WL-003: WAYLAND_DISPLAY names a socket that doesn't exist.
  • SES-001: The session's type isn't Wayland.
  • ENV-001: A compositor version command gave no answer.

Related