Skip to main content

local_desktop

Function local_desktop 

Source
pub fn local_desktop(
    platform: Platform,
    env: impl Fn(&str) -> Option<String>,
) -> bool
Expand description

Whether a browser opened here would open in front of the user: not over SSH (checked first, since ssh -X sets DISPLAY), and on Linux and the BSDs only with a display. env looks up a variable; blank counts as unset.