MCPcopy Create free account
hub / github.com/AstroImageJ/astroimagej / getStubPath

Method getStubPath

ij/src/main/java/ij/OtherInstance.java:70–83  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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 {

Callers 2

sendArgumentsMethod · 0.95
startServerMethod · 0.95

Calls 4

addSeparatorMethod · 0.95
getPortMethod · 0.95
replaceMethod · 0.45
getPropertyMethod · 0.45

Tested by

no test coverage detected