8000 Fix. · vitrivr/vitrivr-engine@eaa3821 · GitHub
[go: up one dir, main page]

Skip to content

Commit

Permalink
Fix.
Browse files Browse the repository at this point in the history
Signed-off-by: Ralph Gasser <rg@pontius.ch>
  • Loading branch information
ppanopticon committed Aug 23, 2024
1 parent 1d719a6 commit eaa3821
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,12 @@ class ExternalRenderer : Closeable {
val os = System.getProperty("os.name").lowercase()
val processBuilder = if (os.contains("mac")) {
ProcessBuilder(javaBin, "-cp", classpath, "-XstartOnFirstThread", CLASS_NAME) /* Mac only issue. */
} else if (os.contains("linux")) {
ProcessBuilder("DISPLAY=:1", javaBin, "-cp", classpath, CLASS_NAME)
} else {
ProcessBuilder(javaBin, "-cp", classpath, CLASS_NAME)
}
if (os.contains("linux")) {
processBuilder.environment()["DISPLAY"] = ":1"
}
this.process = processBuilder.start()

/* Initialize streams. */
Expand Down

0 comments on commit eaa3821

Please sign in to comment.
0