import ext.edu.ucsf.rbvi.strucviz2.StructureManager.ModelType;
import ext.edu.ucsf.rbvi.strucviz2.port.ListenerThreads;
+import jalview.bin.Console;
import jalview.ws.HttpClientUtils;
/**
// Do nothing if Chimera is already launched
if (isChimeraLaunched())
{
+ Console.debug("Chimera is already launched");
return true;
}
// iterate over possible paths for starting Chimera
for (String chimeraPath : chimeraPaths)
{
+ Console.debug("Using '" + chimeraPath + "' to look for Chimera");
try
{
// ensure symbolic links are resolved
// args.add("--debug");
addLaunchArguments(args);
ProcessBuilder pb = new ProcessBuilder(args);
+ Console.debug("Running Chimera with '"
+ + String.join(" ", pb.command()) + "'");
chimera = pb.start();
error = "";
workingPath = chimeraPath;
String error = "Error message: ";
for (String pymolPath : getPymolPaths())
{
+ Console.debug("Using '" + pymolPath + "' to look for Pymol");
try
{
// ensure symbolic links are resolved
// path = new File(pymolPath + "x");
if (!path.canExecute())
{
+ Console.debug("Cannot execute " + path.toString());
error += "File '" + path + "' does not exist.\n";
continue;
}
}
args.add("-R"); // https://pymolwiki.org/index.php/RPC
ProcessBuilder pb = new ProcessBuilder(args);
- Console.debug("Running PyMOL as " + String.join(" ", pb.command()));
+ Console.debug("Running PyMOL with '"
+ + String.join(" ", pb.command()) + "'");
pymolProcess = pb.start();
error = "";
break;