mirror of
https://github.com/rustdesk/hbb_common.git
synced 2026-08-27 04:37:35 +00:00
bcb3b44433d0622caad4b595743808fb80c6133f
`get_wayland_displays` gives up as soon as `Connection::connect_to_env()` fails, which is any process that was not handed `WAYLAND_DISPLAY`. A login screen is the case that matters: rustdesk starts the greeter's `--server` without the compositor variables on purpose, and the desktop layout is then unavailable for the whole session even though the compositor is running and its socket sits in the runtime directory of the very user that process runs as. Measured at an sddm Plasma Wayland greeter: `/run/user/112/wayland-0` exists, `connect(2)` to it as that user succeeds, and the registry advertises `wl_output` and `wl_seat`. With this fallback the greeter reads the same output layout any other session does. Strictly a fallback after `connect_to_env` has already failed, so it cannot change a host where that succeeds; where there is no compositor at all the socket is simply absent and it fails exactly as before.
Description
No description provided
Languages
Rust
100%