| 124 | } |
| 125 | return line; |
| 126 | |
| 127 | } catch (IOException e) { |
| 128 | e.printStackTrace(); |
| 129 | } |
| 130 | return ""; |
| 131 | } |
| 132 | |
| 133 | // static public void openEditor() throws IOException { |
| 134 | // switch (Main.os) { |
| 135 | // case linux: |
| 136 | // try { |
| 137 | // new ProcessBuilder("/usr/bin/google-chrome", "--app=http://localhost:"+ServerSupport.webserverPort+"/init") |
| 138 | // .redirectOutput(ProcessBuilder.Redirect.to(File.createTempFile("field", "browseroutput"))) |
| 139 | // .redirectError(File.createTempFile("field", "browsererror")).start(); |
| 140 | // } catch (Throwable t) { |
| 141 | // t.printStackTrace(); |
| 142 | // } |