X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fext%2Frbvi%2Fchimera%2FChimeraXCommands.java;h=6df5ab9190d494d9d29ca875369c5ab488fe9786;hb=639070f3bd8d2e1502952c54d58ab3ff95538431;hp=90bdb6b82792651884751a3d865a6244b2603363;hpb=7720585dc8cc56cdad2486b330ed37ddd0133531;p=jalview.git diff --git a/src/jalview/ext/rbvi/chimera/ChimeraXCommands.java b/src/jalview/ext/rbvi/chimera/ChimeraXCommands.java index 90bdb6b..6df5ab9 100644 --- a/src/jalview/ext/rbvi/chimera/ChimeraXCommands.java +++ b/src/jalview/ext/rbvi/chimera/ChimeraXCommands.java @@ -125,7 +125,8 @@ public class ChimeraXCommands extends ChimeraCommands public StructureCommandI saveSession(String filepath) { // https://www.cgl.ucsf.edu/chimerax/docs/user/commands/save.html - return new StructureCommand("save session " + filepath); + // note ChimeraX will append ".cxs" to the filepath! + return new StructureCommand("save " + filepath + " format session"); } /** @@ -226,6 +227,6 @@ public class ChimeraXCommands extends ChimeraCommands public StructureCommandI openSession(String filepath) { // https://www.cgl.ucsf.edu/chimerax/docs/user/commands/open.html#composite - return new StructureCommand("open session:" + filepath); + return new StructureCommand("open " + filepath + " format session"); } }