mirror of
https://github.com/corda/corda.git
synced 2024-12-19 04:57:58 +00:00
Use tmux instead of xterm if available
This commit is contained in:
parent
eb9ae6b6b0
commit
79d133d9d7
@ -76,9 +76,16 @@ do script "bash -c 'cd $dir; /usr/libexec/java_home -v 1.8 --exec $javaCmd && ex
|
||||
)
|
||||
} else {
|
||||
// Assume Linux
|
||||
ProcessBuilder(
|
||||
"xterm", "-T", nodeName, "-e", javaCmd
|
||||
)
|
||||
val isTmux = System.getenv("TMUX")?.isNotEmpty() ?: false
|
||||
if (isTmux) {
|
||||
ProcessBuilder(
|
||||
"tmux", "new-window", "-n", nodeName, javaCmd
|
||||
)
|
||||
} else {
|
||||
ProcessBuilder(
|
||||
"xterm", "-T", nodeName, "-e", javaCmd
|
||||
)
|
||||
}
|
||||
}
|
||||
return builder.directory(dir).start()
|
||||
}
|
Loading…
Reference in New Issue
Block a user