Repository navigation
Description
Hex version
0.0.0~dev.249-1 (.deb), running as the hex.service systemd user unit
Platform
Linux Wayland
System details
Ubuntu 26.04.1 LTS, kernel 7.0.0-42, GNOME Shell 50.1 / Mutter 50.1, xdg-desktop-portal-gnome 50.0, Dell XPS 13 (Intel)
What happened?
The recording HUD never appears on GNOME Wayland. Everything else works on dev.249 + GNOME 50: GlobalShortcuts portal hotkeys, recording, transcription, and paste through the RemoteDesktop portal. (That answers the open GNOME questions in #455; clipboard restore is skipped as expected because there's no wlr-data-control.)
I expected the HUD to show at indicator_position (bottom), even if only through a fallback. Instead it's silently missing. Neither the journal nor hex status mentions that it's disabled. A RUST_LOG=debug run shows sctk binding only wl_output, zxdg_output_manager_v1, wl_seat and wp_cursor_shape_manager_v1, with no HUD-related message.
There's currently no configuration where both the HUD and the hotkeys work on GNOME:
- XWayland HUD works: with
WAYLAND_DISPLAYunset (and validDISPLAY/XAUTHORITY),hex dictation startmaps an override-redirect X11 window"hex-hud"(608×160) that honoursindicator_position:bottomon a 3072×1920 screen puts it at+1232+1712, centred. - …but it breaks the hotkeys: in that mode
hex statusstill reports the listenerEnabledwith Portal shortcuts, yet Super+D just typesd, anddbus-monitorshows noorg.freedesktop.portal.GlobalShortcutsActivatedsignals.
Steps to reproduce
- Run dev.249 on GNOME 50 Wayland (
XDG_SESSION_TYPE=wayland,WAYLAND_DISPLAY=wayland-0) with the HUD enabled. - Hold the dictation shortcut (Super+D) or run
hex dictation start. - No HUD appears; dictation and paste otherwise work.
To see the XWayland behaviour: add UnsetEnvironment=WAYLAND_DISPLAY to a hex.service drop-in and restart. The HUD then appears on hex dictation start, but the portal hotkey no longer fires.
Additional context
Suggestions:
- On compositors without layer-shell, open just the HUD as an X11 override-redirect window via XWayland, while keeping Wayland for the portal shortcuts and input. That means choosing the backend per window rather than per process.
- At minimum, surface "HUD unavailable: compositor has no layer-shell" in the log and in
hex status(for examplelistener.warning), so it isn't silent.
Related, separate bug: stale XAUTHORITY in session.env. ~/.local/share/hex/session.env stores XAUTHORITY from the session that wrote it (for example /run/user/1000/.mutter-Xwaylandauth.UNYWX3). Mutter creates a new auth file each login, so after a reboot the path no longer exists, and EnvironmentFile= overrides the user manager's current value. Any X11 connection then fails (Failed to open connection to X server, a panic at rune/src/app.rs:414, after which Hex continues without its window). Workaround: an ExecStartPre that deletes the XAUTHORITY= line before start.
Activity
Fix #465: recording HUD on GNOME Wayland (#466)
thdxr commentedon Oct 30, 2026
Thanks for the report. A fix is merged into
devand ships in the next dev build: #466What we understood
— from 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊
Linux: show the HUD on GNOME Wayland through XWayland; refresh a stal…
Linux: show the HUD on GNOME Wayland through XWayland; refresh a stal…
thdxr commentedon Oct 30, 2026
Thanks @etmartinkazoo for the clear report and analysis. Fixed in #479:
XAUTHORITYsaved in Hex's session environment no longer breaks X11 after a reboot: at startup Hex takes the session's current value (or drops a dead path).It ships in the next dev build; install or update from https://github.com/anomalyco/hex#install-hex. If anything looks off on your GNOME setup, please reopen.
— from 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊