Skip to content

GNOME Wayland: recording HUD never appears (no layer-shell); XWayland fallback breaks portal hotkeys #465

Closed

Description

@etmartinkazoo

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_DISPLAY unset (and valid DISPLAY/XAUTHORITY), hex dictation start maps an override-redirect X11 window "hex-hud" (608×160) that honours indicator_position: bottom on a 3072×1920 screen puts it at +1232+1712, centred.
  • …but it breaks the hotkeys: in that mode hex status still reports the listener Enabled with Portal shortcuts, yet Super+D just types d, and dbus-monitor shows no org.freedesktop.portal.GlobalShortcuts Activated signals.

Steps to reproduce

  1. Run dev.249 on GNOME 50 Wayland (XDG_SESSION_TYPE=wayland, WAYLAND_DISPLAY=wayland-0) with the HUD enabled.
  2. Hold the dictation shortcut (Super+D) or run hex dictation start.
  3. 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:

  1. 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.
  2. At minimum, surface "HUD unavailable: compositor has no layer-shell" in the log and in hex status (for example listener.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

  1. added a commit that references this issue on Oct 30, 2026
    ba8a92d
  2. thdxr commented on Oct 30, 2026

    @thdxr
    Member

    Thanks for the report. A fix is merged into dev and ships in the next dev build: #466

    What we understood

    • Area: recording HUD on GNOME Wayland (linux)
    • Summary: On GNOME 50 Wayland the recording HUD never appears, because the compositor has no layer-shell, and nothing in the log or status output says it is disabled. Forcing the app onto XWayland makes the HUD show, but the portal global hotkeys then stop firing. The reporter also describes a separate bug: a stale X authority path saved in the session environment file breaks X11 connections after a reboot.

    — from 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊

  3. added 2 commits that reference this issue on Oct 30, 2026
    887fec6
    0817ea6
  4. thdxr commented on Oct 30, 2026

    @thdxr
    Member

    Thanks @etmartinkazoo for the clear report and analysis. Fixed in #479:

    • On GNOME (no layer-shell), Hex now opens only the recording HUD on XWayland, as an override-redirect, click-through window that never takes focus, at the top or bottom centre of the primary monitor, with the same Dot scope animation. Everything else, including the GlobalShortcuts portal shortcuts, stays native Wayland, so hotkeys keep working. Without XWayland, Hex still reports the HUD as unavailable.
    • The stale XAUTHORITY saved 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 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions