


("System.getenv(\"DISPLAY\"):" + System.getenv("DISPLAY")) īoolean headless = ("Linux".equals(osName) || ("System.getProperty(\"os.name\"):" + System.getProperty("os.name")) String display = System.getenv("DISPLAY") Then I try to do something a little more stressful with the network and boom. However, different week, different hotel and my pi starts kicking up this error: Temporary failure in name resolution. It works on my home network and my previous hotel network. String osName = System.getProperty("os.name") 1 I have a Pi running a version of raspbian 64bit. Return (OS.contains("nix") || OS.contains("nux") || OS.contains("aix")) Return (OS.contains("mac") || OS.contains("darwin")) Here the code: private static final String OS = System.getProperty("os.name").toLowerCase()

Java HotSpot(TM) 64-Bit Server VM (build 25.251-b08, mixed ~]$Ĭhecking DISPLAY variable ~]$ printenv | grep ~]$ sudo printenv | grep ~]$ sudo -Hiu root env | grep ~]$ sudo -Hiu joseluisbz env | grep ~]$ Java(TM) SE Runtime Environment (build 1.8.0_251-b08)
