JBIDE-18650: Only execute the Linux specific part if visible==true