fn set_env_vars() {
    env::set_var("XDG_CURRENT_DESKTOP", "LeftWM");

    // Fix for Java apps so they repaint correctly
    env::set_var("_JAVA_AWT_WM_NONREPARENTING", "1");
}
Sets some relevant environment variables for leftwm
leftwm/src/bin/leftwm.rs