Skip to content

docs: record Wayland portal capture and input findings - #214

Merged
ElbertePlinio merged 2 commits into
mainfrom
docs/155-wayland-portals
Sep 27, 2026
Merged

ElbertePlinio merged 2 commits into
mainfrom
docs/155-wayland-portals

Conversation

@ElbertePlinio

Copy link
Copy Markdown
Member

Closes #155.

Adds docs/wayland-portals.md, the investigation report for native Wayland capture and input through xdg-desktop-portal. Managed sessions stay X11 on Xvfb, and nothing in the product changes.

Hyprland 0.56.2 was measured nested with its own session bus, config and permission store. GNOME Shell 50.4 was measured headless in an Arch container. Both runs used real portal calls, PipeWire frames and typed input read back from a GTK entry.

Hyprland supports ScreenCast but has no RemoteDesktop portal, so input there is unsupported. GNOME supports both, with an interaction toggle that defaults to off. On both, restore tokens restore silently, are never rotated, and can be read by any same-user process through the permission store. The report therefore requires per-session consent with no persistence, and it bans the consent-free paths it found: wlr screencopy, virtual keyboard and pointer, and Mutter's private D-Bus APIs. It also sets the scope limits for secrets, external actions, recovery and screen content.

KDE Plasma and other wlroots compositors were not measured and are listed as unsupported until tested. No implementation issue was filed.

Docs-only change. There is no markdown lint in this repo, and code checks don't apply.

Measured ScreenCast, RemoteDesktop and Screenshot portals on Hyprland 0.56.2 and GNOME Shell 50.4, defined what an opt-in existing-desktop mode would need, and listed supported, partial and unsupported combinations.
Re-ran the GNOME dialog claims inside a pickforge-lab desktop session through gnome-shell --devkit. The first keystroke was not dropped there, so the note now calls it unreliable rather than always lost, and it records the verified devices 0 input rejection.
@ElbertePlinio

Copy link
Copy Markdown
Member Author

Re-verified the GNOME claims with Pickforge itself: gnome-shell --devkit ran its viewer inside a pickforge-lab desktop session, and every dialog was read with pickforge-lab desktop screenshot and answered with pickforge-lab desktop click. Portal versions, the Remote Desktop dialog and its defaults, the devices 0 grant rejecting input, restore tokens restoring silently and readable from the permission store, the Screenshot prompt with Deny focused, and Mutter's private API working with no dialog all matched. The first keystroke was not dropped in 4 of 4 runs there, unlike the headless run, so the note now calls it unreliable rather than always lost. Hyprland can't nest inside software-rendered GNOME (it needs linux-dmabuf v4, Mutter offers v3), so its claims rest on the earlier nested run.

@ElbertePlinio
ElbertePlinio merged commit cca2fee into main Sep 27, 2026
5 checks passed
@ElbertePlinio
ElbertePlinio deleted the docs/155-wayland-portals branch September 27, 2026 01:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

investigate: Wayland capture and input for desktop computer use

1 participant