Skip to main content

read_system_with

Function read_system_with 

Source
pub fn read_system_with(
    env: Option<&str>,
    desktop: &str,
    run: impl Fn(&str, &[&str]) -> Option<String>,
) -> SystemFocus
Expand description

The window manager’s way from what a reader would see: the environment variable ENV, the desktop (XDG_CURRENT_DESKTOP), and run (a program and its arguments, its output when it succeeds).