()
| 68 | } |
| 69 | |
| 70 | @AstroImageJ(reason = "Replace method of cross-instance communication", modified = true) |
| 71 | public static String getStubPath() { |
| 72 | String display = System.getenv("DISPLAY"); |
| 73 | if (display!=null) { |
| 74 | display = display.replace(':', '_'); |
| 75 | display = display.replace('/', '_'); |
| 76 | } |
| 77 | String tmpDir = System.getProperty("java.io.tmpdir"); |
| 78 | tmpDir = IJ.addSeparator(tmpDir); |
| 79 | return tmpDir + "AstroImageJ-" |
| 80 | + System.getProperty("user.name") + "-" |
| 81 | + (display == null ? "" : display + "-") |
| 82 | + ImageJ.getPort() + ".stub"; |
| 83 | } |
| 84 | |
| 85 | public static void makeFilePrivate(String path) { |
| 86 | try { |
no test coverage detected