Control a Hyprland desktop remotely when RustDesk cannot inject input
Confirmed locally that /usr/share/xdg-desktop-portal/portals/hyprland.portal on xdg-desktop-portal-hyprland 1.4.1-2 lists only Screenshot, ScreenCast, GlobalShortcuts and InputCapture, and hyprwm/xdg-desktop-portal-hyprland#252 is open. The bbs thread 299925 carries the quoted RustDesk error and is solved by pointing at #252. The hyprland-wiki virtual-gpu page lists Wayvnc. The wayvnc README confirms the default loopback listener, the SSH tunnel recommendation and the auth config keys. wayvnc 0.10.1-1 is in extra. o.launch_on_start in /usr/share/omarchy/default/hypr/helpers.lua wraps hl.on("hyprland.start") and hl.exec_cmd through uwsm-app, confirmed. Two defects. The AnyDesk claims (title, symptom, and 'AnyDesk's Linux client still expects X11') are supported by none of the four sources, so they are removed as fabricated precision. And /usr/share/omarchy/bin/omarchy-setup-security-sshd does not merely 'can authorize a key': it exits unless a key is authorized and then writes /etc/ssh/sshd_config.d/10-omarchy-hardening.conf disabling password and keyboard-interactive login, which a reader expecting password ssh needs to know. It also uses ufw limit 22/tcp. Not exercised: wayvnc was not run and no remote session was attempted.
Do not run wayvnc 0.0.0.0 on an untrusted network without enable_auth=true and TLS or RSA-AES keys in ~/.config/wayvnc/config. Anyone who reaches the port gets full control of your session. The loopback-plus-SSH setup above avoids that.
Symptom
Incoming RustDesk sessions to my Hyprland machine fail, or show the screen but my clicks and keys do nothing. RustDesk logs: No such interface "org.freedesktop.portal.RemoteDesktop" on object at path /org/freedesktop/portal/desktop. Outgoing connections from this machine work.
Cause
On Wayland, remote-control apps request input injection through the org.freedesktop.portal.RemoteDesktop portal. xdg-desktop-portal-hyprland does not implement it: its portal file (/usr/share/xdg-desktop-portal/portals/hyprland.portal on 1.4.1) lists only Screenshot, ScreenCast, GlobalShortcuts and InputCapture. hyprwm/xdg-desktop-portal-hyprland#252, the request for it, is open. Any remote-control app that relies on that portal for incoming control is affected the same way. The sources here cover RustDesk only.
Fix
Use wayvnc, a VNC server for wlroots-style compositors that creates its own virtual input devices and needs no portal. The Hyprland wiki lists it as supported.
sudo pacman -S --needed wayvnc
Start it **inside** the Hyprland session (a terminal on that desktop) so it inherits WAYLAND_DISPLAY, listening on loopback only:
wayvnc 127.0.0.1 5900
The viewer reaches it through an SSH tunnel, so the Hyprland machine needs an SSH server reachable from the other machine.
**Omarchy 4.** The firewall denies all incoming connections by default. Omarchy's own script installs and enables sshd, opens port 22 (rate limited) and authorizes a public key from GitHub or pasted in. Run it as your user, not with sudo:
omarchy-setup-security-sshd
It refuses to finish without a key, and once a key is authorized it **turns password login off** by writing /etc/ssh/sshd_config.d/10-omarchy-hardening.conf. Have the viewing machine's public key ready before you run it.
**Plain Arch.** Enable sshd.service and allow port 22 in whatever firewall you run.
From the other machine, tunnel over SSH and point any VNC viewer at the tunnel:
ssh -L 5900:127.0.0.1:5900 you@hyprland-host
# then connect the viewer to 127.0.0.1:5900
To start it with the session on Omarchy 4, add to ~/.config/hypr/autostart.lua:
o.launch_on_start("wayvnc 127.0.0.1 5900")
On plain Hyprland 0.55+, use hl.exec_cmd("wayvnc 127.0.0.1 5900") inside a hl.on("hyprland.start", ...) handler instead.
Verify
ss -ltn | grep 5900 shows wayvnc on 127.0.0.1:5900. Through the SSH tunnel the viewer shows the desktop and mouse and keyboard work.