Commits

mabe02 committed 0c22c4d

System.getenv is not supported in Java 1.4.2, changing to System.getProperty (will require -D rather than specifying STTY_PATH as an environmental variable)

Comments (0)

Files changed (1)

src/org/lantern/terminal/TerminalStatus.java

 class TerminalStatus
 {
     private static String CACHED_TTY = null;
-    private static final String STTY_ENV_VARIABLE = System.getenv("STTY_PATH");
+    private static final String STTY_ENV_VARIABLE = System.getProperty("STTY_PATH");
     private static final String STTY_PROGRAM = 
             (STTY_ENV_VARIABLE != null && !STTY_ENV_VARIABLE.trim().equals("")) ?
                 STTY_ENV_VARIABLE : "stty";