Skip to main content

wayland_session_from_env

Function wayland_session_from_env 

Source
fn wayland_session_from_env(
    session_type: Option<&str>,
    wayland_display: bool,
) -> bool
Expand description

Pure Wayland-session test over the two relevant env signals, split out so the decision is unit-testable without mutating process env. Mirrors the probes in scheduler::overlay and video; kept local so the window path stays self-contained.